Add OpenGL hint to SDL
This commit is contained in:
parent
6b5a9cdd1e
commit
d3f261b0d3
1 changed files with 2 additions and 0 deletions
|
|
@ -223,6 +223,8 @@ static SDL_bool Impl_RenderContextCreate(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl");
|
||||
|
||||
if (!renderer)
|
||||
renderer = SDL_CreateRenderer(window, -1, flags);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue