summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2014-08-06 12:15:15 -0700
committerJesse Hall <jessehall@google.com>2014-09-04 10:07:28 -0700
commit46a1f6b40e1f7677cd41cd30f729ff66c7c21517 (patch)
tree3c418eaf1b66b409142d780df1c754e26c55e1aa
parent41088d9e9f50aa5a0ef658d879f617992a967c5c (diff)
downloadframeworks_native-46a1f6b40e1f7677cd41cd30f729ff66c7c21517.zip
frameworks_native-46a1f6b40e1f7677cd41cd30f729ff66c7c21517.tar.gz
frameworks_native-46a1f6b40e1f7677cd41cd30f729ff66c7c21517.tar.bz2
GLConsumer: correct EGL_NO_DISPLAY to EGL_NO_CONTEXT
Change-Id: I4dcb57a0db9ee3c5222cd453c9213859384212b0
-rw-r--r--libs/gui/GLConsumer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/GLConsumer.cpp b/libs/gui/GLConsumer.cpp
index ccafe81..94e9866 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;
}
}