Disable timer queries on GLES;

They aren't compatible with multiview.
This commit is contained in:
bjorn 2020-09-19 17:25:54 -07:00
parent 2e65d71a74
commit 9b0812c4f9
1 changed files with 2 additions and 2 deletions

View File

@ -1546,7 +1546,7 @@ void lovrGpuResetState() {
}
void lovrGpuTick(const char* label) {
#ifndef LOVR_WEBGL
#ifdef LOVR_GL
lovrAssert(state.activeTimer == ~0u, "Attempt to start a new GPU timer while one is already active!");
QueryPool* pool = &state.queryPool;
uint64_t hash = hash64(label, strlen(label));
@ -1599,7 +1599,7 @@ void lovrGpuTick(const char* label) {
}
double lovrGpuTock(const char* label) {
#ifndef LOVR_WEBGL
#ifdef LOVR_GL
QueryPool* pool = &state.queryPool;
uint64_t hash = hash64(label, strlen(label));
uint64_t index = map_get(&state.timerMap, hash);