renderer: Always use the output size when updating the main view

The main view always reflects the size of the output, so don't use the dimensions of the currently bound render target texture when updating it, or it will reflect an incorrect size when the render target texture is unbound.

(cherry picked from commit 8aa5b97bb5)
This commit is contained in:
Frank Praznik authored and Sam Lantinga committed 2025-05-14 09:38:13 -07:00
1 parent 8410e11ecb
commit 8d604353a5
1 file changed
+1 -1
+1 -1
View File
@@ -2573,7 +2573,7 @@ static void UpdateLogicalPresentation(SDL_Renderer *renderer)
const float logical_h = view->logical_h; const float logical_h = view->logical_h;
int iwidth, iheight; int iwidth, iheight;
if (renderer->target) { if (!is_main_view && renderer->target) {
iwidth = (int)renderer->target->w; iwidth = (int)renderer->target->w;
iheight = (int)renderer->target->h; iheight = (int)renderer->target->h;
} else { } else {