]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - glquake.h
fix a syntax error. Why didn't my gcc catch it? clang does...
[xonotic/darkplaces.git] / glquake.h
index 460650239da5f5ad20efaf988b8b07230c6af76b..bb9220f4cdf9d337adf4936926d6a5816ca083e6 100644 (file)
--- a/glquake.h
+++ b/glquake.h
@@ -953,7 +953,7 @@ extern void (GLAPIENTRY *qglGetQueryObjectuivARB)(GLuint qid, GLenum pname, GLui
 #define DEBUGGL
 
 #ifdef DEBUGGL
-#define CHECKGLERROR {if (gl_paranoid.integer){if (gl_printcheckerror.integer) Con_Printf("CHECKGLERROR at %s:%d\n", __FILE__, __LINE__);errornumber = qglGetError();if (errornumber) GL_PrintError(errornumber, __FILE__, __LINE__);}}
+#define CHECKGLERROR {if (gl_paranoid.integer){if (gl_printcheckerror.integer) Con_Printf("CHECKGLERROR at %s:%d\n", __FILE__, __LINE__);errornumber = qglGetError ? qglGetError() : 0;if (errornumber) GL_PrintError(errornumber, __FILE__, __LINE__);}}
 extern int errornumber;
 void GL_PrintError(int errornumber, const char *filename, int linenumber);
 #else