Fix build

This commit is contained in:
CamilleLaVey
2026-09-25 18:20:25 -04:00
parent d2d2220b24
commit 63ce0a0527
+11 -8
View File
@@ -387,15 +387,18 @@ bool BufferCache<P>::TakeDrawHazard() noexcept {
template <class P>
void BufferCache<P>::CommitDrawWrites() {
recording_draw = false;
if (draw_writes.empty()) {
return;
if constexpr (!IS_OPENGL) {
recording_draw = false;
if (draw_writes.empty()) {
return;
}
const u64 pass = runtime.RenderPassSerial();
for (const DrawWrite& write : draw_writes) {
slot_buffers[write.buffer_id].MarkDrawWrite(pass, draw_wfi, write.device_addr,
write.size);
}
runtime.MarkRenderPassWrites();
}
const u64 pass = runtime.RenderPassSerial();
for (const DrawWrite& write : draw_writes) {
slot_buffers[write.buffer_id].MarkDrawWrite(pass, draw_wfi, write.device_addr, write.size);
}
runtime.MarkRenderPassWrites();
}
template <class P>