Commit a2c57573567035be56ff1d2e446856aaf9ccd0c8

Ryan C. Gordon 2022-09-01T10:47:24

video: check for "software" with SDL_HINT_FRAMEBUFFER_ACCELERATION. We check for this value elsewhere but not in SDL_CreateWindowFramebuffer.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 992a76d..297d595 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -2628,7 +2628,7 @@ SDL_CreateWindowFramebuffer(SDL_Window * window)
         /* See if the user or application wants to specifically disable the framebuffer */
         const char *hint = SDL_GetHint(SDL_HINT_FRAMEBUFFER_ACCELERATION);
         if (hint) {
-            if (*hint == '0' || SDL_strcasecmp(hint, "false") == 0) {
+            if ((*hint == '0') || (SDL_strcasecmp(hint, "false") == 0) || (SDL_strcasecmp(hint, "software") == 0)) {
                 attempt_texture_framebuffer = SDL_FALSE;
             }
         }