diff options
Diffstat (limited to 'opengl/tests/angeles/app-linux.cpp')
-rw-r--r-- | opengl/tests/angeles/app-linux.cpp | 4 |
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) { |