From 3cabe641d67ddca65f5cec7edf2c6c008f32603c Mon Sep 17 00:00:00 2001 From: fysx Date: Thu, 6 Feb 2014 00:14:33 +0100 Subject: [PATCH] Disable OpenGL debug on OpenGL ES2 (should fix Ouya compatibility) --- jni/love/src/modules/graphics/opengl/Graphics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jni/love/src/modules/graphics/opengl/Graphics.cpp b/jni/love/src/modules/graphics/opengl/Graphics.cpp index 22f049aa..b19935fe 100644 --- a/jni/love/src/modules/graphics/opengl/Graphics.cpp +++ b/jni/love/src/modules/graphics/opengl/Graphics.cpp @@ -238,7 +238,8 @@ bool Graphics::setMode(int width, int height) enabledebug = (flags & GL_CONTEXT_FLAG_DEBUG_BIT) != 0; } - setDebug(enabledebug); + if (!GLAD_ES_VERSION_2_0) + setDebug(enabledebug); return true; }