mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-23 13:55:50 +12:00
Get first renders working with accelerated draws
This commit is contained in:
parent
33e63f7d7a
commit
5432a5a0d8
6 changed files with 63 additions and 78 deletions
4
third_party/duckstation/gl/stream_buffer.cpp
vendored
4
third_party/duckstation/gl/stream_buffer.cpp
vendored
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue