forked from fte/fteqw
1
0
Fork 0

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
1 changed files with 3 additions and 2 deletions

View File

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