Get first renders working with accelerated draws

This commit is contained in:
wheremyfoodat 2024-08-25 17:14:19 +03:00
parent 33e63f7d7a
commit 5432a5a0d8
6 changed files with 63 additions and 78 deletions

View file

@ -132,7 +132,7 @@ namespace {
const u32 end = GetSyncIndexForOffset(offset);
for (; m_used_block_index < end; m_used_block_index++) {
if (m_sync_objects[m_used_block_index]) {
Helpers::panic("GL stream buffer: Fence slot we're trying to insert is already in use");
Helpers::warn("GL stream buffer: Fence slot we're trying to insert is already in use");
}
m_sync_objects[m_used_block_index] = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
@ -149,7 +149,7 @@ namespace {
const u32 end = std::min<u32>(GetSyncIndexForOffset(offset) + 1, NUM_SYNC_POINTS);
for (; m_available_block_index < end; m_available_block_index++) {
if (!m_sync_objects[m_used_block_index]) [[unlikely]] {
Helpers::panic("GL stream buffer: Fence slot we're trying to wait on in not in use");
Helpers::warn("GL stream buffer: Fence slot we're trying to wait on in not in use");
}
WaitForSync(m_sync_objects[m_available_block_index]);