From 1d3bcd6e217e7ef177287d06f6fdf6149f453830 Mon Sep 17 00:00:00 2001 From: Mathias Agopian <mathias@google.com> Date: Mon, 10 Aug 2009 16:48:22 -0700 Subject: workaround a bug in the SGX driver that would prevent eglGetConfig to work properly --- opengl/tests/swapinterval/swapinterval.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'opengl/tests/swapinterval/swapinterval.cpp') diff --git a/opengl/tests/swapinterval/swapinterval.cpp b/opengl/tests/swapinterval/swapinterval.cpp index 80a6c21..df53b62 100644 --- a/opengl/tests/swapinterval/swapinterval.cpp +++ b/opengl/tests/swapinterval/swapinterval.cpp @@ -44,12 +44,13 @@ int main(int argc, char** argv) EGLint w, h; EGLDisplay dpy; + + EGLNativeWindowType window = android_createDisplaySurface(); + dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); eglInitialize(dpy, 0 ,0) ;//&majorVersion, &minorVersion); eglGetConfigs(dpy, NULL, 0, &numConfigs); printf("# configs = %d\n", numConfigs); - - EGLNativeWindowType window = android_createDisplaySurface(); status_t err = EGLUtils::selectConfigForNativeWindow( dpy, configAttribs, window, &config); -- cgit v1.1