From 5fad835ff1e8d473ee3a41ab365a93e548f2b5a3 Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 28 Mar 2026 23:54:51 +0100 Subject: [PATCH] Update rcore.c --- src/rcore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rcore.c b/src/rcore.c index dc31a103b..c7ff22951 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -821,7 +821,7 @@ int GetRenderWidth(void) { int width = 0; - if (CORE.Window.usingFbo) return CORE.Window.currentFbo.width; + if (CORE.Window.usingFbo) width = CORE.Window.currentFbo.width; else width = CORE.Window.render.width; return width; @@ -832,7 +832,7 @@ int GetRenderHeight(void) { int height = 0; - if (CORE.Window.usingFbo) return CORE.Window.currentFbo.height; + if (CORE.Window.usingFbo) height = CORE.Window.currentFbo.height; else height = CORE.Window.render.height; return height;