diff --git a/ui/sdl2.c b/ui/sdl2.c index ce14bd1f4e..c75f750e00 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -113,6 +113,8 @@ void sdl2_window_create(struct sdl2_console *scon) if (scon->opts->gl == DISPLAY_GL_MODE_ES) { driver = "opengles2"; + SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, + SDL_GL_CONTEXT_PROFILE_ES); } SDL_SetHint(SDL_HINT_RENDER_DRIVER, driver);