summaryrefslogtreecommitdiffstats
path: root/opengl/tests/angeles
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-08-10 16:48:22 -0700
committerMathias Agopian <mathias@google.com>2009-08-10 16:48:22 -0700
commite6f0f5c8fb4b6d249de5995545350fd95b2012f6 (patch)
tree3b7849da4b78a99afda2ed7d8f43e9d0fc6a1ae5 /opengl/tests/angeles
parent07cbacc11705f1f05a1150083aad000c53942dea (diff)
downloadframeworks_base-e6f0f5c8fb4b6d249de5995545350fd95b2012f6.zip
frameworks_base-e6f0f5c8fb4b6d249de5995545350fd95b2012f6.tar.gz
frameworks_base-e6f0f5c8fb4b6d249de5995545350fd95b2012f6.tar.bz2
workaround a bug in the SGX driver that would prevent eglGetConfig to work properly
Diffstat (limited to 'opengl/tests/angeles')
-rw-r--r--opengl/tests/angeles/app-linux.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/opengl/tests/angeles/app-linux.cpp b/opengl/tests/angeles/app-linux.cpp
index 9c71693..06fa0c2 100644
--- a/opengl/tests/angeles/app-linux.cpp
+++ b/opengl/tests/angeles/app-linux.cpp
@@ -133,11 +133,11 @@ static int initGraphics()
EGLint w, h;
EGLDisplay dpy;
+ EGLNativeWindowType window = android_createDisplaySurface();
+
dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY);
eglInitialize(dpy, &majorVersion, &minorVersion);
- EGLNativeWindowType window = android_createDisplaySurface();
-
status_t err = EGLUtils::selectConfigForNativeWindow(
dpy, configAttribs, window, &config);
if (err) {