OSDN Git Service

Fix typo causing GL_EXT_debug_marker to disappear
authorPyry Haulos <phaulos@google.com>
Tue, 4 Apr 2017 01:22:58 +0000 (18:22 -0700)
committerPyry Haulos <phaulos@google.com>
Tue, 4 Apr 2017 01:25:29 +0000 (18:25 -0700)
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

index 7ed34be..6238780 100644 (file)
@@ -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 ");
         }