summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-09-10 17:23:48 +0200
committerRay <[email protected]>2021-09-10 17:23:48 +0200
commit40ec7a6236cec9befab2dcb22d3dce384d76291c (patch)
tree5ff12bf45dca097b4c4a390b97426ddd2bce19a3 /src/core.c
parent352ea80a1fb556d2232a152c82db4b1451093524 (diff)
downloadraylib-40ec7a6236cec9befab2dcb22d3dce384d76291c.tar.gz
raylib-40ec7a6236cec9befab2dcb22d3dce384d76291c.zip
Update core.c
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 9a8d3c62..e8f02094 100644
--- a/src/core.c
+++ b/src/core.c
@@ -4856,7 +4856,9 @@ static EM_BOOL EmscriptenResizeCallback(int eventType, const EmscriptenUiEvent *
// NOTE: Window resizing not allowed by default
static void WindowSizeCallback(GLFWwindow *window, int width, int height)
{
- SetupViewport(width, height); // Reset viewport and projection matrix for new size
+ // Reset viewport and projection matrix for new size
+ SetupViewport(width, height);
+
CORE.Window.currentFbo.width = width;
CORE.Window.currentFbo.height = height;
CORE.Window.resizedLastFrame = true;
@@ -4866,8 +4868,8 @@ static void WindowSizeCallback(GLFWwindow *window, int width, int height)
// Set current screen size
CORE.Window.screen.width = width;
CORE.Window.screen.height = height;
+
// NOTE: Postprocessing texture is not scaled to new size
-
}
// GLFW3 WindowIconify Callback, runs when window is minimized/restored