aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2019-01-04 15:48:25 +0100
committerraysan5 <raysan5@gmail.com>2019-01-04 15:48:25 +0100
commit0bacc978c39a234da4a2b73ce3cb5b43e072a103 (patch)
tree06b0d3dd9dea3c344289f64a344e01720588ad47 /src
parent214aa0c1b0d5c766d22bbb1069ecfb3a78373577 (diff)
downloadraylib-0bacc978c39a234da4a2b73ce3cb5b43e072a103.tar.gz
raylib-0bacc978c39a234da4a2b73ce3cb5b43e072a103.zip
Corrected issue on web
Diffstat (limited to 'src')
-rw-r--r--src/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 2d607c3a..8844b1d3 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2381,7 +2381,9 @@ static bool InitGraphicsDevice(int width, int height)
// Try to disable GPU V-Sync by default, set framerate using SetTargetFPS()
// NOTE: V-Sync can be enabled by graphic driver configuration
+#if !defined(PLATFORM_WEB)
glfwSwapInterval(0);
+#endif
#if defined(PLATFORM_DESKTOP)
// Load OpenGL 3.3 extensions