@@ -94,7 +94,7 @@ static int engine_init_display(struct engine* engine) {
9494 const EGLint attribs[] = {EGL_SURFACE_TYPE, EGL_WINDOW_BIT, EGL_BLUE_SIZE,
9595 8 , EGL_GREEN_SIZE, 8 ,
9696 EGL_RED_SIZE, 8 , EGL_NONE};
97- EGLint w, h, dummy, format ;
97+ EGLint w, h, dummy;
9898 EGLint numConfigs;
9999 EGLConfig config;
100100 EGLSurface surface;
@@ -109,14 +109,6 @@ static int engine_init_display(struct engine* engine) {
109109 * the first EGLConfig that matches our criteria */
110110 eglChooseConfig (display, attribs, &config, 1 , &numConfigs);
111111
112- /* EGL_NATIVE_VISUAL_ID is an attribute of the EGLConfig that is
113- * guaranteed to be accepted by ANativeWindow_setBuffersGeometry().
114- * As soon as we picked a EGLConfig, we can safely reconfigure the
115- * ANativeWindow buffers to match, using EGL_NATIVE_VISUAL_ID. */
116- eglGetConfigAttrib (display, config, EGL_NATIVE_VISUAL_ID, &format);
117-
118- ANativeWindow_setBuffersGeometry (engine->app ->window , 0 , 0 , format);
119-
120112 surface = eglCreateWindowSurface (display, config, engine->app ->window , NULL );
121113 context = eglCreateContext (display, config, NULL , NULL );
122114
0 commit comments