1
0
Эх сурвалжийг харах

Try to create an accelerated renderer for the window surface even if SDL_HINT_RENDER_DRIVER is "software"

This case is properly handled inside SDL_CreateWindowTexture()

Fixes https://github.com/libsdl-org/SDL/issues/10155

(cherry picked from commit c7ed78a9ef229c569e3999d3e2e7067ee4cfe056)
Sam Lantinga 9 сар өмнө
parent
commit
a4cbba1276
1 өөрчлөгдсөн 0 нэмэгдсэн , 8 устгасан
  1. 0 8
      src/video/SDL_video.c

+ 0 - 8
src/video/SDL_video.c

@@ -2696,14 +2696,6 @@ static SDL_bool ShouldAttemptTextureFramebuffer(void)
         attempt_texture_framebuffer = SDL_FALSE;
 #endif
     }
-
-    if (attempt_texture_framebuffer) {
-        /* Using a software renderer will try to display on a window surface, so avoid recursion here */
-        hint = SDL_GetHint(SDL_HINT_RENDER_DRIVER);
-        if (hint && SDL_strcasecmp(hint, "software") == 0) {
-            attempt_texture_framebuffer = SDL_FALSE;
-        }
-    }
     return attempt_texture_framebuffer;
 }