mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Ignore SDL_HINT_RENDER_DRIVER set to software when creating a window surface
We handled the case where software was in a list of render drivers, but not when the hint was set to exactly "software". Fixes https://github.com/libsdl-org/sdl2-compat/issues/266
This commit is contained in:
@@ -334,6 +334,9 @@ static bool SDL_CreateWindowTexture(SDL_VideoDevice *_this, SDL_Window *window,
|
||||
if (!render_driver) {
|
||||
render_driver = SDL_GetHint(SDL_HINT_RENDER_DRIVER);
|
||||
}
|
||||
if (render_driver && SDL_strcasecmp(render_driver, SDL_SOFTWARE_RENDERER) == 0) {
|
||||
render_driver = NULL;
|
||||
}
|
||||
|
||||
char *render_driver_copy = NULL;
|
||||
if (render_driver && *render_driver) {
|
||||
|
Reference in New Issue
Block a user