Skip to content

Commit

Permalink
Set currentFbo to render size in EndTextureMode
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudValensi committed Sep 13, 2021
1 parent 681bf91 commit 8b1dd7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b1dd7a

Please sign in to comment.