mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
Fix Apple platform bug in GetTickFrequency
The numerator and denominator were the wrong way around. Discovered running renderdoccmd unit tests on M1 Mac Book Air
This commit is contained in:
committed by
Baldur Karlsson
parent
698e22a5ae
commit
1f332f629f
@@ -33,7 +33,7 @@ double Timing::GetTickFrequency()
|
||||
|
||||
uint64_t numer = timeInfo.numer;
|
||||
uint64_t denom = timeInfo.denom;
|
||||
return ((double)numer / (double)denom) * 1000000.0;
|
||||
return ((double)denom / (double)numer) * 1000000.0;
|
||||
}
|
||||
|
||||
uint64_t Timing::GetTick()
|
||||
|
||||
Reference in New Issue
Block a user