Set SDL hint to prefer software render driver (#1646)

This commit is contained in:
Guldoman 2023-10-21 08:16:32 +02:00 committed by George Sokianos
parent e520227d35
commit 05e7fc4e43
1 changed files with 2 additions and 0 deletions

View File

@ -160,6 +160,8 @@ int main(int argc, char **argv) {
SDL_SetHint("SDL_MOUSE_DOUBLE_CLICK_RADIUS", "4");
#endif
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "software");
SDL_DisplayMode dm;
SDL_GetCurrentDisplayMode(0, &dm);