src/video/SDL_egl.c
changeset 11677 aed6a9ff3c99
parent 11676 591e138c5a04
child 11718 3006dd42e4db
equal deleted inserted replaced
11676:591e138c5a04 11677:aed6a9ff3c99
   525     } else {
   525     } else {
   526         attribs[i++] = EGL_OPENGL_BIT;
   526         attribs[i++] = EGL_OPENGL_BIT;
   527         _this->egl_data->eglBindAPI(EGL_OPENGL_API);
   527         _this->egl_data->eglBindAPI(EGL_OPENGL_API);
   528     }
   528     }
   529 
   529 
       
   530     if (_this->egl_data->egl_surfacetype) {
       
   531         attribs[i++] = EGL_SURFACE_TYPE;
       
   532         attribs[i++] = _this->egl_data->egl_surfacetype;
       
   533     }
       
   534 
   530     attribs[i++] = EGL_NONE;
   535     attribs[i++] = EGL_NONE;
   531 
   536 
   532     if (_this->egl_data->eglChooseConfig(_this->egl_data->egl_display,
   537     if (_this->egl_data->eglChooseConfig(_this->egl_data->egl_display,
   533         attribs,
   538         attribs,
   534         configs, SDL_arraysize(configs),
   539         configs, SDL_arraysize(configs),