diff options
Diffstat (limited to 'plugins/gpu-gles/gpuStdafx.h')
-rw-r--r-- | plugins/gpu-gles/gpuStdafx.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/gpu-gles/gpuStdafx.h b/plugins/gpu-gles/gpuStdafx.h index 3a6a1c5..69050b3 100644 --- a/plugins/gpu-gles/gpuStdafx.h +++ b/plugins/gpu-gles/gpuStdafx.h @@ -88,6 +88,18 @@ extern "C" { #endif
#endif
+#if 0
+#define glError() { \
+ GLenum err = glGetError(); \
+ while (err != GL_NO_ERROR) { \
+ printf("glError: %d caught at %s:%u\n", err, __FILE__, __LINE__); \
+ err = glGetError(); \
+ } \
+}
+#else
+#define glError()
+#endif
+
#ifdef __cplusplus
}
#endif
|