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:
parent
3b936a3f24
commit
e909fdbf8c
1 changed files with 3 additions and 2 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue