Try a few types of renderer creation requests, just in case.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 18 Feb 2019 00:26:26 -0500
changeset 6829c66e3bd07e
parent 67 4df59270e628
child 69 a2c5f6a01a55
Try a few types of renderer creation requests, just in case.
src/SDL12_compat.c
     1.1 --- a/src/SDL12_compat.c	Mon Feb 18 00:25:42 2019 -0500
     1.2 +++ b/src/SDL12_compat.c	Mon Feb 18 00:26:26 2019 -0500
     1.3 @@ -1877,10 +1877,16 @@
     1.4          SDL_RendererInfo rinfo;
     1.5          SDL_assert(!VideoGLContext20);  /* either a new window or we destroyed all this */
     1.6          if (!VideoRenderer20) {
     1.7 +            VideoRenderer20 = SDL20_CreateRenderer(VideoWindow20, -1, SDL_RENDERER_ACCELERATED|SDL_RENDERER_PRESENTVSYNC);
     1.8 +        }
     1.9 +        if (!VideoRenderer20) {
    1.10 +            VideoRenderer20 = SDL20_CreateRenderer(VideoWindow20, -1, SDL_RENDERER_PRESENTVSYNC);
    1.11 +        }
    1.12 +        if (!VideoRenderer20) {
    1.13              VideoRenderer20 = SDL20_CreateRenderer(VideoWindow20, -1, 0);
    1.14 -            if (!VideoRenderer20) {
    1.15 -                return EndVidModeCreate();
    1.16 -            }
    1.17 +        }
    1.18 +        if (!VideoRenderer20) {
    1.19 +            return EndVidModeCreate();
    1.20          }
    1.21  
    1.22          SDL20_RenderSetLogicalSize(VideoRenderer20, width, height);