1
0
Fork 0
forked from fte/fteqw

Workaround for wine.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3732 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2011-01-30 12:30:15 +00:00
parent 3b936a3f24
commit e909fdbf8c

View file

@ -975,10 +975,11 @@ void GL_Init(void *(*getglfunction) (char *name))
s++; s++;
gl_minor_version = atoi(s); gl_minor_version = atoi(s);
} }
qglGetIntegerv(GL_NUM_EXTENSIONS, &gl_num_extensions); /*gl3 adds glGetStringi instead, as core, with the old form require GL_ARB_compatibility*/
if (!qglGetError() && gl_num_extensions) if (gl_major_version >= 3 && qglGetStringi) /*warning: wine fails to export qglGetStringi*/
{ {
int i; int i;
qglGetIntegerv(GL_NUM_EXTENSIONS, &gl_num_extensions);
if (developer.value) if (developer.value)
{ {
Con_Printf ("GL_EXTENSIONS:\n"); Con_Printf ("GL_EXTENSIONS:\n");