Flush batched draws before dispatching compute;

This commit is contained in:
bjorn
2021-07-07 20:29:21 -07:00
parent 13a10ac482
commit 9ae529b325
+1
View File
@@ -1093,6 +1093,7 @@ void Graphics::dispatchThreadgroups(Shader* shader, int x, int y, int z)
throw love::Exception("Too many threadgroups dispatched.");
}
flushBatchedDraws();
shader->attach();
dispatch(x, y, z);
}