From 46a1f6b40e1f7677cd41cd30f729ff66c7c21517 Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Wed, 6 Aug 2014 12:15:15 -0700 Subject: [PATCH] GLConsumer: correct EGL_NO_DISPLAY to EGL_NO_CONTEXT Change-Id: I4dcb57a0db9ee3c5222cd453c9213859384212b0 --- libs/gui/GLConsumer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gui/GLConsumer.cpp b/libs/gui/GLConsumer.cpp index ccafe81ce..94e9866e1 100644 --- a/libs/gui/GLConsumer.cpp +++ b/libs/gui/GLConsumer.cpp @@ -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; } }