Skip to content

Commit

Permalink
Try to create an accelerated renderer for the window surface even if …
Browse files Browse the repository at this point in the history
…SDL_HINT_RENDER_DRIVER is "software"

This case is properly handled inside SDL_CreateWindowTexture()

Fixes #10155
  • Loading branch information
slouken committed Jul 5, 2024
1 parent 065ec2d commit c7ed78a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/video/SDL_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c7ed78a

Please sign in to comment.