src/video/SDL_egl.c
changeset 11677 aed6a9ff3c99
parent 11676 591e138c5a04
child 11718 3006dd42e4db
     1.1 --- a/src/video/SDL_egl.c	Sat Nov 04 09:04:19 2017 -0700
     1.2 +++ b/src/video/SDL_egl.c	Sat Nov 04 09:07:33 2017 -0700
     1.3 @@ -527,6 +527,11 @@
     1.4          _this->egl_data->eglBindAPI(EGL_OPENGL_API);
     1.5      }
     1.6  
     1.7 +    if (_this->egl_data->egl_surfacetype) {
     1.8 +        attribs[i++] = EGL_SURFACE_TYPE;
     1.9 +        attribs[i++] = _this->egl_data->egl_surfacetype;
    1.10 +    }
    1.11 +
    1.12      attribs[i++] = EGL_NONE;
    1.13  
    1.14      if (_this->egl_data->eglChooseConfig(_this->egl_data->egl_display,