From 9f58cabba9806e2c365c64f7a3701efa6282aa72 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 17 Jan 2012 00:38:32 +0200 Subject: gpu-gles: schtruck/fpse merge: gl error checks useful debugging tool, yeah --- plugins/gpu-gles/gpuStdafx.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'plugins/gpu-gles/gpuStdafx.h') 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 -- cgit v1.2.3