Problem with OpenGL and ATI HD3850

John Hein jhein at timing.com
Wed Apr 29 17:25:25 UTC 2009


Roland Smith wrote at 18:38 +0200 on Apr 29, 2009:
 > On Wed, Apr 29, 2009 at 04:41:13PM +0200, Oliver Lehmann wrote:
 > > In Ogre3D, the failing code part is:
 > > 
 > >     void GLSupport::initialiseExtensions(void)
 > >     {
 > >         // Set version string
 > >         const GLubyte* pcVer = glGetString(GL_VERSION);
 > > printf("ogre 110\n");
 > >         assert(pcVer && "Problems getting GL version string using
 > > glGetString"); printf("ogre 110.1\n");
 > 
 > The assert is weird. Why take an AND of pcVer and a string? Since the
 > string is a constant non-null value, using the standard && operator is useless. 
 > Is the && operator overloaded by any chance? That could cause the trouble.

His printf says he gets past the assert, so an overloaded operator&&
shouldn't be an issue.

Try printing to stderr instead of stdout (or set stdio to be
unbuffered with setvbuf(3)) - you may be getting farther than you
think and are getting bitten by stdio buffering.

Also is this threaded?


More information about the freebsd-x11 mailing list