diff options
Diffstat (limited to 'opengl/tests/textures/textures.cpp')
-rw-r--r-- | opengl/tests/textures/textures.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opengl/tests/textures/textures.cpp b/opengl/tests/textures/textures.cpp index ee92e79..cbe8ffd 100644 --- a/opengl/tests/textures/textures.cpp +++ b/opengl/tests/textures/textures.cpp @@ -42,11 +42,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) { |