From 8b1dd7af1ce4ca570f4c1c71a5f577835fd13898 Mon Sep 17 00:00:00 2001 From: Arnaud Valensi Date: Tue, 14 Sep 2021 00:41:11 +0200 Subject: [PATCH] Set currentFbo to render size in EndTextureMode --- src/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.c b/src/core.c index 82923aa0bb46..7da47b478d73 100644 --- a/src/core.c +++ b/src/core.c @@ -2147,8 +2147,8 @@ void EndTextureMode(void) SetupViewport(CORE.Window.render.width, CORE.Window.render.height); // Reset current fbo to screen size - CORE.Window.currentFbo.width = CORE.Window.screen.width; - CORE.Window.currentFbo.height = CORE.Window.screen.height; + CORE.Window.currentFbo.width = CORE.Window.render.width; + CORE.Window.currentFbo.height = CORE.Window.render.height; } // Begin custom shader mode