Browse Source

Corrected issue on web

raysan5 6 years ago
parent
commit
0bacc978c3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/core.c

+ 2 - 0
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