summaryrefslogtreecommitdiffstats
path: root/opengl/tests/angeles/app-linux.cpp
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
commit1d3bcd6e217e7ef177287d06f6fdf6149f453830 (patch)
tree13a060612c474a8ff481e771ef6853905f0378a8 /opengl/tests/angeles/app-linux.cpp
parentfc40bc2e35f73f6efac91f9acca14d8e116a7565 (diff)
downloadframeworks_native-1d3bcd6e217e7ef177287d06f6fdf6149f453830.zip
frameworks_native-1d3bcd6e217e7ef177287d06f6fdf6149f453830.tar.gz
frameworks_native-1d3bcd6e217e7ef177287d06f6fdf6149f453830.tar.bz2
workaround a bug in the SGX driver that would prevent eglGetConfig to work properly
Diffstat (limited to 'opengl/tests/angeles/app-linux.cpp')
-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) {