Fix off-by-one tick number in readbacks;

Only when a readback is read back before a pass is created.

Should really change gpu to know if the frame has started yet and adjust
the tick index accordingly.
This commit is contained in:
bjorn 2022-11-21 19:42:23 -08:00
parent 0c966ba216
commit 7f2618227f
1 changed files with 2 additions and 0 deletions

View File

@ -3091,6 +3091,8 @@ bool lovrReadbackWait(Readback* readback) {
return false;
}
beginFrame();
bool waited = gpu_wait_tick(readback->tick);
if (waited) {