mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 09:44:35 +00:00 
			
		
		
		
	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
This commit is contained in:
		@@ -3283,14 +3283,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, SDL_SOFTWARE_RENDERER) == 0) {
 | 
			
		||||
            attempt_texture_framebuffer = SDL_FALSE;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    return attempt_texture_framebuffer;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user