GLConsumer: correct EGL_NO_DISPLAY to EGL_NO_CONTEXT

Change-Id: I4dcb57a0db9ee3c5222cd453c9213859384212b0
(cherry picked from commit 46a1f6b40e)
This commit is contained in:
Jesse Hall 2014-08-06 12:15:15 -07:00
parent 1f3efb11ff
commit 1834f8ea97

View 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;
}
}