mirror of https://github.com/encounter/SDL.git
video: check for "software" with SDL_HINT_FRAMEBUFFER_ACCELERATION.
We check for this value elsewhere but not in SDL_CreateWindowFramebuffer.
This commit is contained in:
parent
d76f0cc753
commit
a2c5757356
|
@ -2628,7 +2628,7 @@ SDL_CreateWindowFramebuffer(SDL_Window * window)
|
||||||
/* See if the user or application wants to specifically disable the framebuffer */
|
/* See if the user or application wants to specifically disable the framebuffer */
|
||||||
const char *hint = SDL_GetHint(SDL_HINT_FRAMEBUFFER_ACCELERATION);
|
const char *hint = SDL_GetHint(SDL_HINT_FRAMEBUFFER_ACCELERATION);
|
||||||
if (hint) {
|
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;
|
attempt_texture_framebuffer = SDL_FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue