mirror of https://github.com/bjornbytes/lovr.git
android: fix t.graphics.debug;
This commit is contained in:
parent
ef88f5549b
commit
4f730a89a7
|
@ -377,6 +377,7 @@ bool lovrPlatformCreateWindow(const WindowFlags* flags) {
|
|||
|
||||
EGLint contextAttributes[] = {
|
||||
EGL_CONTEXT_CLIENT_VERSION, 3,
|
||||
EGL_CONTEXT_OPENGL_DEBUG, flags->debug,
|
||||
EGL_NONE
|
||||
};
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue