소스 검색

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()
     // Try to disable GPU V-Sync by default, set framerate using SetTargetFPS()
     // NOTE: V-Sync can be enabled by graphic driver configuration
     // NOTE: V-Sync can be enabled by graphic driver configuration
+#if !defined(PLATFORM_WEB)
     glfwSwapInterval(0);
     glfwSwapInterval(0);
+#endif
 
 
 #if defined(PLATFORM_DESKTOP)
 #if defined(PLATFORM_DESKTOP)
     // Load OpenGL 3.3 extensions
     // Load OpenGL 3.3 extensions