Problem with OpenGL and ATI HD3850

John Hein jhein at timing.com
Thu Apr 30 13:56:09 UTC 2009


Oliver Lehmann wrote at 14:21 +0200 on Apr 30, 2009:
 > Tom Evans writes:
 > > 
 > > fprint(stderr, "%x %s\n", pcVer, pcVer); 
 > 
 > What I now did is (stolen from glxgears): 
 > 
 >         // Set version string
 >         const GLubyte* pcVer = glGetString(GL_VERSION);
 > fprintf(stderr,"100\n");
 >       printf("GL_RENDERER   = %s\n", (char *) glGetString(GL_RENDERER));
 >       printf("GL_VERSION    = %s\n", (char *) glGetString(GL_VERSION));
 >       printf("GL_VENDOR     = %s\n", (char *) glGetString(GL_VENDOR));
 >       printf("GL_EXTENSIONS = %s\n", (char *) glGetString(GL_EXTENSIONS));
 >         assert(pcVer && "Problems getting GL version string using 
 > glGetString");
 > fprintf(stderr,"101\n");
 >         String tmpStr = (const char*)pcVer; 
 > 
 > Just to see what glGetString returns - independently what is in pcVer.
 > The output I'm getting is: 
 > 
 > olivleh1 at kartoffel olivleh1> freeorion
 > unknown chip id 0x9515, can't guess.
 > 100
 > GL_RENDERER   = (null)
 > GL_VERSION    = (null)
 > GL_VENDOR     = (null)
 > GL_EXTENSIONS = (null)
 > 101
 > main() caught exception(std::exception): basic_string::_S_construct NULL 
 > not valid
 > olivleh1 at kartoffel olivleh1> 
 > 
 > 
 > Could it be, that there was no "GL context" created before? But than I 
 > wonder about the output "unknown chip id...". And why the assert() is not 
 > handling it.

The assert is perhaps not handling it because it has been compiled out.
Look for -DNDEBUG.


More information about the freebsd-x11 mailing list