mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-24 19:35:34 +00:00
Select EGL config when creating the EGL surface
This commit is contained in:
parent
f848adff5f
commit
7d9e42f28c
|
@ -225,8 +225,7 @@ SDL_EGL_LoadLibrary(_THIS, const char *egl_path, NativeDisplayType native_displa
|
||||||
*_this->gl_config.driver_path = '\0';
|
*_this->gl_config.driver_path = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We need to select a config here to satisfy some video backends such as X11 */
|
return 0;
|
||||||
return SDL_EGL_ChooseConfig(_this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -452,6 +451,10 @@ SDL_EGL_DeleteContext(_THIS, SDL_GLContext context)
|
||||||
EGLSurface *
|
EGLSurface *
|
||||||
SDL_EGL_CreateSurface(_THIS, NativeWindowType nw)
|
SDL_EGL_CreateSurface(_THIS, NativeWindowType nw)
|
||||||
{
|
{
|
||||||
|
if (SDL_EGL_ChooseConfig(_this) != 0) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
return _this->egl_data->eglCreateWindowSurface(
|
return _this->egl_data->eglCreateWindowSurface(
|
||||||
_this->egl_data->egl_display,
|
_this->egl_data->egl_display,
|
||||||
_this->egl_data->egl_config,
|
_this->egl_data->egl_config,
|
||||||
|
|
Loading…
Reference in a new issue