From 48c5f98aa5a123cb28390c0c1d54b38aeb0fd39e Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 27 Jul 2013 23:13:40 +0000 Subject: [PATCH] fix for gles2 headers/omissions git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4435 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidcommon.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/gl/gl_vidcommon.c b/engine/gl/gl_vidcommon.c index 2bad7d91f..d7f9416b6 100644 --- a/engine/gl/gl_vidcommon.c +++ b/engine/gl/gl_vidcommon.c @@ -1750,8 +1750,12 @@ void DumpGLState(void) // if (qglIsEnabled(GL_INDEX_ARRAY)) { 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); Sys_Printf("GL_INDEX_ARRAY: %s %i:%p\n", qglIsEnabled(GL_INDEX_ARRAY)?"en":"dis", rval, ptr); +#endif } if (qglIsEnabled(GL_NORMAL_ARRAY)) {