Преглед изворни кода

Disable OpenGL debug on OpenGL ES2 (should fix Ouya compatibility)

fysx пре 12 година
родитељ
комит
3cabe641d6
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      jni/love/src/modules/graphics/opengl/Graphics.cpp

+ 2 - 1
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;
 }