소스 검색

Fix current time value

victorfisac 9 년 전
부모
커밋
5a1cbb2842
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/physac.h

+ 1 - 0
src/physac.h

@@ -788,6 +788,7 @@ static double GetCurrentTime(void)
     QueryPerformanceFrequency(&clockFrequency);
     QueryPerformanceCounter(&currentTime);
     
+    time = (double)((double)currentTime/(double)clockFrequency);
 #endif
 
 #if defined(PLATFORM_ANDROID) || defined(PLATFORM_RPI)