Skip to content

Commit

Permalink
Try just an accelerated renderer instead of just a vsync renderer.
Browse files Browse the repository at this point in the history
If we can't get acceleration, no sense in making it _slower_.  :)
  • Loading branch information
icculus committed Mar 6, 2019
1 parent 3af751b commit d3532bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SDL12_compat.c
Expand Up @@ -1310,6 +1310,7 @@ SDL_VideoDriverName(char *namebuf, int maxlen)
return GetDriverName(SDL20_GetCurrentVideoDriver(), namebuf, maxlen);
}


DECLSPEC int SDLCALL
SDL_PollEvent(SDL12_Event *event12)
{
Expand Down Expand Up @@ -2786,7 +2787,7 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags12)
VideoRenderer20 = SDL20_CreateRenderer(VideoWindow20, -1, SDL_RENDERER_ACCELERATED|SDL_RENDERER_PRESENTVSYNC);
}
if (!VideoRenderer20) {
VideoRenderer20 = SDL20_CreateRenderer(VideoWindow20, -1, SDL_RENDERER_PRESENTVSYNC);
VideoRenderer20 = SDL20_CreateRenderer(VideoWindow20, -1, SDL_RENDERER_ACCELERATED);
}
if (!VideoRenderer20) {
VideoRenderer20 = SDL20_CreateRenderer(VideoWindow20, -1, 0);
Expand Down

0 comments on commit d3532bc

Please sign in to comment.