Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

web: Fix frame delay regression

Fabio Alessandrelli8527a54af15c
diff --git a/platform/web/os_web.cpp b/platform/web/os_web.cpp
index 41533e8d6da..b2b38516be7 100644
--- a/platform/web/os_web.cpp
+++ b/platform/web/os_web.cpp
@@ -204,7 +204,7 @@ String OS_Web::get_name() const {
}
void OS_Web::add_frame_delay(bool p_can_draw, bool p_wake_for_events) {
-#ifndef PROXY_TO_PTHREAD_ENABLED
+#ifdef PROXY_TO_PTHREAD_ENABLED
OS::add_frame_delay(p_can_draw, p_wake_for_events);
#endif
}