#define SHADETEXBIT(x) ((x>>24) & 0x1)\r
#define SEMITRANSBIT(x) ((x>>25) & 0x1)\r
\r
-#ifndef _WINDOWS\r
-#ifndef GL_BGRA_EXT\r
-#define GL_BGRA_EXT GL_RGBA\r
-#endif\r
+#if 0\r
+#define glError() { \\r
+ GLenum err = glGetError(); \\r
+ while (err != GL_NO_ERROR) { \\r
+ printf("glError: %d caught at %s:%u\n", err, __FILE__, __LINE__); \\r
+ err = glGetError(); \\r
+ } \\r
+}\r
+#else\r
+#define glError() \r
#endif\r
\r
#ifdef __cplusplus\r