video: check for "software" with SDL_HINT_FRAMEBUFFER_ACCELERATION.

We check for this value elsewhere but not in SDL_CreateWindowFramebuffer.
main
Ryan C. Gordon 2022-09-01 10:47:24 -04:00
parent d76f0cc753
commit a2c5757356
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}