reset back to default screen scale when ending a render texture since we are back on the default fbo
This commit is contained in:
parent
1fed11a3ea
commit
8b058f752c
|
|
@ -1062,6 +1062,11 @@ void EndTextureMode(void)
|
|||
// Set viewport to default framebuffer size
|
||||
SetupViewport(CORE.Window.render.width, CORE.Window.render.height);
|
||||
|
||||
// go back to the modelview state from BeginDrawing since we are back to the default FBO
|
||||
rlMatrixMode(RL_MODELVIEW); // Switch back to modelview matrix
|
||||
rlLoadIdentity(); // Reset current matrix (modelview)
|
||||
rlMultMatrixf(MatrixToFloat(CORE.Window.screenScale)); // Apply screen scaling if required
|
||||
|
||||
// Reset current fbo to screen size
|
||||
CORE.Window.currentFbo.width = CORE.Window.render.width;
|
||||
CORE.Window.currentFbo.height = CORE.Window.render.height;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user