summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormausimus <[email protected]>2021-10-04 07:47:41 +0000
committerGitHub <[email protected]>2021-10-04 09:47:41 +0200
commit654189590194c3a854f09d76bfe60bd754870568 (patch)
tree4570ded2cb35832044e3e729a1e7d79f30819ff8
parent5d8c477d12d6eba4a3c79f18173ebdb2df6b8280 (diff)
downloadraylib-654189590194c3a854f09d76bfe60bd754870568.tar.gz
raylib-654189590194c3a854f09d76bfe60bd754870568.zip
Revert "reset resizedLastFrame on web platform (#2020)" (#2032)
-rw-r--r--src/rcore.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 7b16e7f7..3d89338c 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -4724,6 +4724,8 @@ void PollInputEvents(void)
}
}
+ CORE.Window.resizedLastFrame = false;
+
#if defined(SUPPORT_EVENTS_WAITING)
glfwWaitEvents();
#else
@@ -4731,10 +4733,6 @@ void PollInputEvents(void)
#endif
#endif // PLATFORM_DESKTOP
-#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
- CORE.Window.resizedLastFrame = false;
-#endif
-
// Gamepad support using emscripten API
// NOTE: GLFW3 joystick functionality not available in web
#if defined(PLATFORM_WEB)