From e6f0f5c8fb4b6d249de5995545350fd95b2012f6 Mon Sep 17 00:00:00 2001 From: Mathias Agopian 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/fillrate/fillrate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opengl/tests/fillrate') diff --git a/opengl/tests/fillrate/fillrate.cpp b/opengl/tests/fillrate/fillrate.cpp index 4ffbc8b..911d354 100644 --- a/opengl/tests/fillrate/fillrate.cpp +++ b/opengl/tests/fillrate/fillrate.cpp @@ -45,11 +45,11 @@ int main(int argc, char** argv) 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) { -- cgit v1.1