android: fix t.graphics.debug;

This commit is contained in:
bjorn 2020-09-16 20:40:39 -07:00
parent ef88f5549b
commit 4f730a89a7
2 changed files with 2 additions and 1 deletions

View File

@ -377,6 +377,7 @@ bool lovrPlatformCreateWindow(const WindowFlags* flags) {
EGLint contextAttributes[] = {
EGL_CONTEXT_CLIENT_VERSION, 3,
EGL_CONTEXT_OPENGL_DEBUG, flags->debug,
EGL_NONE
};

View File

@ -1245,7 +1245,7 @@ void lovrGpuInit(void* (*getProcAddress)(const char*), bool debug) {
#endif
#ifndef LOVR_WEBGL
if (debug && GLAD_GL_KHR_debug) {
if (debug && (GLAD_GL_KHR_debug || GLAD_GL_ES_VERSION_3_2)) {
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
glDebugMessageCallback(onMessage, NULL);
}