浏览代码

Corrected issue on web

raysan5 6 年之前
父节点
当前提交
0bacc978c3
共有 1 个文件被更改,包括 2 次插入0 次删除
  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