commit a0e667de8678b045f8f08a7d87ba86239e33fa6b
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Wed Sep 23 08:20:39 2020 +0200
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Wed Sep 23 08:20:39 2020 +0200
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.
---
textscreen/txt_sdl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c
index 91bdffd9..ab6cd4dc 100644
--- a/textscreen/txt_sdl.c
+++ b/textscreen/txt_sdl.c
@@ -253,7 +253,7 @@ int TXT_Init(void)
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