summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
diff options
context:
space:
mode:
authormausimus <[email protected]>2021-09-29 21:27:10 +0000
committerGitHub <[email protected]>2021-09-29 23:27:10 +0200
commit93efa565f959ef1857dd3835376b17430901629d (patch)
tree862665a09dce6d3f499241eb2f43f1864f6a0e29 /src/rcore.c
parentdfbb134bfeb0089b187568c6b6bcc8c033cb3c23 (diff)
downloadraylib-93efa565f959ef1857dd3835376b17430901629d.tar.gz
raylib-93efa565f959ef1857dd3835376b17430901629d.zip
reset resizedLastFrame on web platform (#2020)
Diffstat (limited to 'src/rcore.c')
-rw-r--r--src/rcore.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 66c734a1..45b11fcf 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -4717,8 +4717,6 @@ void PollInputEvents(void)
}
}
- CORE.Window.resizedLastFrame = false;
-
#if defined(SUPPORT_EVENTS_WAITING)
glfwWaitEvents();
#else
@@ -4726,6 +4724,10 @@ 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)