fix for gles2 headers/omissions

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4435 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-07-27 23:13:40 +00:00
parent 50c2df12df
commit 48c5f98aa5

View file

@ -1750,8 +1750,12 @@ void DumpGLState(void)
// if (qglIsEnabled(GL_INDEX_ARRAY)) // if (qglIsEnabled(GL_INDEX_ARRAY))
{ {
qglGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING, &rval); qglGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING, &rval);
#ifndef GL_INDEX_ARRAY_POINTER
Sys_Printf("GL_ELEMENT_ARRAY_BUFFER_BINDING: %i:%p\n", rval, (void*)0);
#else
qglGetPointerv(GL_INDEX_ARRAY_POINTER, &ptr); qglGetPointerv(GL_INDEX_ARRAY_POINTER, &ptr);
Sys_Printf("GL_INDEX_ARRAY: %s %i:%p\n", qglIsEnabled(GL_INDEX_ARRAY)?"en":"dis", rval, ptr); Sys_Printf("GL_INDEX_ARRAY: %s %i:%p\n", qglIsEnabled(GL_INDEX_ARRAY)?"en":"dis", rval, ptr);
#endif
} }
if (qglIsEnabled(GL_NORMAL_ARRAY)) if (qglIsEnabled(GL_NORMAL_ARRAY))
{ {