shithub: choc

Download patch

ref: a0e667de8678b045f8f08a7d87ba86239e33fa6b
parent: f700744969ac867649aa581ae19447a4c172179e
author: Fabian Greffrath <fabian@greffrath.com>
date: Wed Sep 23 04:20:39 EDT 2020

textscreen: deliberately create a software renderer

On systems which lack sufficient hardware acceleration capabilities we
would have no chance to open the setup window otherwise.

Fixes https://github.com/fabiangreffrath/crispy-doom/issues/670.

--- a/textscreen/txt_sdl.c
+++ b/textscreen/txt_sdl.c
@@ -253,7 +253,7 @@
     if (TXT_SDLWindow == NULL)
         return 0;
 
-    renderer = SDL_CreateRenderer(TXT_SDLWindow, -1, 0);
+    renderer = SDL_CreateRenderer(TXT_SDLWindow, -1, SDL_RENDERER_SOFTWARE);
 
     // Special handling for OS X retina display. If we successfully set the
     // highdpi flag, check the output size for the screen renderer. If we get