website logo
Auteur
avatar
BeWorld

Forum » » Développement » » Comment porter un jeu sur MorphOS ?


Post� : 24-01-2010 15:26 icone du post

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 !!!

/* 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

Cet article provient de Meta-MorphOS
https://www.meta-morphos.org/viewtopic.php?topic=392&forum=52