OSDN Git Service

GLConsumer: correct EGL_NO_DISPLAY to EGL_NO_CONTEXT
authorJesse Hall <jessehall@google.com>
Wed, 6 Aug 2014 19:15:15 +0000 (12:15 -0700)
committerJesse Hall <jessehall@google.com>
Thu, 4 Sep 2014 17:07:28 +0000 (10:07 -0700)
Change-Id: I4dcb57a0db9ee3c5222cd453c9213859384212b0

libs/gui/GLConsumer.cpp

index ccafe81..94e9866 100644 (file)
@@ -505,7 +505,7 @@ status_t GLConsumer::checkAndUpdateEglStateLocked(bool contextCheck) {
         if (mEglDisplay == EGL_NO_DISPLAY) {
             mEglDisplay = dpy;
         }
-        if (mEglContext == EGL_NO_DISPLAY) {
+        if (mEglContext == EGL_NO_CONTEXT) {
             mEglContext = ctx;
         }
     }