mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 23:06:03 +00:00
Render GPU: Don't call GetWindowSizeInPixels during RenderPreset (#10984)
This commit is contained in:
@@ -2564,6 +2564,10 @@ static void UpdateLogicalPresentation(SDL_Renderer *renderer)
|
||||
|
||||
int iwidth, iheight;
|
||||
SDL_GetRenderOutputSize(renderer, &iwidth, &iheight);
|
||||
|
||||
renderer->window_pixel_w = iwidth;
|
||||
renderer->window_pixel_h = iheight;
|
||||
|
||||
const float output_w = (float)iwidth;
|
||||
const float output_h = (float)iheight;
|
||||
const float logical_w = renderer->logical_w;
|
||||
|
Reference in New Issue
Block a user