Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f15219b2 authored by Pyry Haulos's avatar Pyry Haulos
Browse files

Fix typo causing GL_EXT_debug_marker to disappear

Android EGL wrapper is supposed to always insert GL_EXT_debug_marker
implementation. A small typo in recent refactoring broke this logic.

Bug: 36865892
Test: dEQP-GLES2.functional.debug_marker.supported
parent 0860434b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -114,7 +114,7 @@ void egl_context_t::onMakeCurrent(EGLSurface draw, EGLSurface read) {
        // call the implementation's glGetString(GL_EXTENSIONS)
        // call the implementation's glGetString(GL_EXTENSIONS)
        const char* exts = (const char *)gEGLImpl.hooks[version]->gl.glGetString(GL_EXTENSIONS);
        const char* exts = (const char *)gEGLImpl.hooks[version]->gl.glGetString(GL_EXTENSIONS);
        gl_extensions = exts;
        gl_extensions = exts;
        if (gl_extensions.find("GL_EXT_debug_marker") != std::string::npos) {
        if (gl_extensions.find("GL_EXT_debug_marker") == std::string::npos) {
            gl_extensions.insert(0, "GL_EXT_debug_marker ");
            gl_extensions.insert(0, "GL_EXT_debug_marker ");
        }
        }