From f15219b280fa385b754ae1478b84a939eae92c64 Mon Sep 17 00:00:00 2001 From: Pyry Haulos Date: Mon, 3 Apr 2017 18:22:58 -0700 Subject: 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 --- opengl/libs/EGL/egl_object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opengl/libs/EGL/egl_object.cpp b/opengl/libs/EGL/egl_object.cpp index 7ed34be89a..623878062b 100644 --- a/opengl/libs/EGL/egl_object.cpp +++ b/opengl/libs/EGL/egl_object.cpp @@ -114,7 +114,7 @@ void egl_context_t::onMakeCurrent(EGLSurface draw, EGLSurface read) { // call the implementation's glGetString(GL_EXTENSIONS) const char* exts = (const char *)gEGLImpl.hooks[version]->gl.glGetString(GL_EXTENSIONS); 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 "); } -- cgit v1.2.3-59-g8ed1b