mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[UI] Fix divide-by-zero hazard
This value is currently returning `0` on ARM machines and throws an exception.
This commit is contained in:
parent
f2b05ead9d
commit
aa4a3e09e4
2
third_party/microprofile/microprofileui.h
vendored
2
third_party/microprofile/microprofileui.h
vendored
|
|
@ -3252,7 +3252,7 @@ void MicroProfileDraw(uint32_t nWidth, uint32_t nHeight)
|
||||||
|
|
||||||
#if MICROPROFILE_CONTEXT_SWITCH_TRACE
|
#if MICROPROFILE_CONTEXT_SWITCH_TRACE
|
||||||
MicroProfileStringArrayAddLiteral(&Debug, "Context Switch");
|
MicroProfileStringArrayAddLiteral(&Debug, "Context Switch");
|
||||||
MicroProfileStringArrayFormat(&Debug, "%9d [%7d]", S.nContextSwitchUsage, MICROPROFILE_CONTEXT_SWITCH_BUFFER_SIZE / S.nContextSwitchUsage );
|
MicroProfileStringArrayFormat(&Debug, "%9d [%7d]", S.nContextSwitchUsage, S.nContextSwitchUsage ? MICROPROFILE_CONTEXT_SWITCH_BUFFER_SIZE / S.nContextSwitchUsage : 0 );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for(int i = 0; i < MICROPROFILE_MAX_THREADS; ++i)
|
for(int i = 0; i < MICROPROFILE_MAX_THREADS; ++i)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue