summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2012-09-16 14:02:20 -0700
committerJamie Gennis <jgennis@google.com>2012-09-17 17:23:29 -0700
commita08cf6e3a4ee045608bc8991a779dedb4f281a3f (patch)
treecc44b03dff774e99d6afdcadc6131e4e392ebb36 /opengl
parent6e220a6ce6971555b883f4852c6e5d4c7a617815 (diff)
downloadframeworks_native-a08cf6e3a4ee045608bc8991a779dedb4f281a3f.zip
frameworks_native-a08cf6e3a4ee045608bc8991a779dedb4f281a3f.tar.gz
frameworks_native-a08cf6e3a4ee045608bc8991a779dedb4f281a3f.tar.bz2
EGL: fix an extension string bug
This change fixes a bug where initializing EGL multiple times (eglTerminate followed by eglInitialize) would cause extensions to show up in the extension string multiple times. Change-Id: I707a3da62ed30ef13835087167f84a08bc6addd7
Diffstat (limited to 'opengl')
-rw-r--r--opengl/libs/EGL/egl_display.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/opengl/libs/EGL/egl_display.cpp b/opengl/libs/EGL/egl_display.cpp
index 371df43..88a17d9 100644
--- a/opengl/libs/EGL/egl_display.cpp
+++ b/opengl/libs/EGL/egl_display.cpp
@@ -293,6 +293,10 @@ EGLBoolean egl_display_t::terminate() {
mHibernation.setDisplayValid(false);
+ // Reset the extension string since it will be regenerated if we get
+ // reinitialized.
+ mExtensionString.setTo("");
+
// Mark all objects remaining in the list as terminated, unless
// there are no reference to them, it which case, we're free to
// delete them.