diff options
author | notaz | 2012-01-17 00:38:32 +0200 |
---|---|---|
committer | notaz | 2012-01-19 01:42:10 +0200 |
commit | 9f58cabba9806e2c365c64f7a3701efa6282aa72 (patch) | |
tree | 0dd0170f0f1595b641dcf1c5ccd7cf8ace98b93b /plugins/gpu-gles/gpuStdafx.h | |
parent | 0507e4f1e5c28ea0e5214b32ed1f6f571f7b8066 (diff) | |
download | pcsx_rearmed-9f58cabba9806e2c365c64f7a3701efa6282aa72.tar.gz pcsx_rearmed-9f58cabba9806e2c365c64f7a3701efa6282aa72.tar.bz2 pcsx_rearmed-9f58cabba9806e2c365c64f7a3701efa6282aa72.zip |
gpu-gles: schtruck/fpse merge: gl error checks
useful debugging tool, yeah
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
|