ok, voici tout le bout de cote (avec la ligne 965) :
bool GlaxiumVariables::isExtensionSupported(const char *extension)
{
const GLubyte *extensions = NULL;
const GLubyte *start;
GLubyte *where, *terminator;
/* Extension names should not have spaces. */
where = (GLubyte *) strchr(extension, ' ');
if (where || *extension == '\0')
return false;
extensions = glGetString(GL_EXTENSIONS); <<<<<<<<<< c'est la le pb !!! :paf
/* It takes a bit of care to be fool-proof about parsing the
OpenGL extensions string. Don't be fooled by sub-strings,
etc. */
start = extensions;
for (;;) {
where = (GLubyte *) strstr((const char *) start, extension);
if (!where)
break;
terminator = where + strlen(extension);
if (where == start || *(where - 1) == ' ')
if (*terminator == ' ' || *terminator == '\0')
return true;
start = terminator;
}
return false;
}
Si tu veux autre chose ? merci
IMAC 2.1 / PB 1.5G 17 / PM G5 2.7
My Works