int x, y;
};
-#ifdef _DEBUG
+#if defined(_DEBUG) && !defined(__ANDROID__) && !defined(__EMSCRIPTEN__) && !defined(__ODROID__)
+//#define GL_DEBUGGING
+#endif
+
+#ifdef GL_DEBUGGING
static void APIENTRY openglCallbackFunction(GLenum source,
GLenum type,
GLuint id,
int current;
void * previous;
-#if !defined(__ANDROID__) && !defined(__EMSCRIPTEN__) && !defined(__ODROID__)
-#ifdef _DEBUG
+#ifdef GL_DEBUGGING
static void setupDebugging()
{
if(glDebugMessageCallback)
GLuint unusedIds = 0;
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
- /*
+
glDebugMessageCallback(openglCallbackFunction, null);
glDebugMessageControl(GL_DONT_CARE,
GL_DONT_CARE,
0,
&unusedIds,
GL_TRUE);
- */
}
}
#endif
-#endif
#if defined(__WIN32__)
static HGLRC winCreateContext(HDC hdc)
PrintLn("vboAvailable is: ", vboAvailable);
#endif
-# ifdef _DEBUG
+# ifdef GL_DEBUGGING
setupDebugging();
# endif