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 GitHub
parent a4561e76ad
commit 8a1a34c1ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"); SDL_SetHint("SDL_MOUSE_DOUBLE_CLICK_RADIUS", "4");
#endif #endif
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "software");
SDL_DisplayMode dm; SDL_DisplayMode dm;
SDL_GetCurrentDisplayMode(0, &dm); SDL_GetCurrentDisplayMode(0, &dm);