mirror of https://github.com/bjornbytes/lovr.git
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:
parent
0c966ba216
commit
7f2618227f
|
@ -3091,6 +3091,8 @@ bool lovrReadbackWait(Readback* readback) {
|
|||
return false;
|
||||
}
|
||||
|
||||
beginFrame();
|
||||
|
||||
bool waited = gpu_wait_tick(readback->tick);
|
||||
|
||||
if (waited) {
|
||||
|
|
Loading…
Reference in New Issue