Force to use opengl

This commit is contained in:
Hunt Lin 2020-11-03 13:01:43 +08:00
parent fdc19e7f19
commit d41583e1a2

View file

@ -258,6 +258,8 @@ screen_init_rendering(struct screen *screen, const char *window_title,
window_flags |= SDL_WINDOW_BORDERLESS;
}
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl");
int x = window_x != SC_WINDOW_POSITION_UNDEFINED
? window_x : (int) SDL_WINDOWPOS_UNDEFINED;
int y = window_y != SC_WINDOW_POSITION_UNDEFINED