GL: Fixed GPU timer frequency.

This commit is contained in:
Branimir Karadžić
2017-09-22 22:26:56 -07:00
parent 4b4b1c31a6
commit 41b29a34a6
2 changed files with 8 additions and 7 deletions

View File

@@ -7611,7 +7611,7 @@ namespace bgfx { namespace gl
m_gpuTimer.end(frameQueryIdx);
const TimerQueryGL::Result& result = m_gpuTimer.m_result[BGFX_CONFIG_MAX_VIEWS];
double toGpuMs = 1000.0 / 1e6;
double toGpuMs = 1000.0 / 1e9;
elapsedGpuMs = (result.m_end - result.m_begin) * toGpuMs;
maxGpuElapsed = elapsedGpuMs > maxGpuElapsed ? elapsedGpuMs : maxGpuElapsed;