From 16425379e3c52d7e71be5c3df22b154c8f223153 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Fri, 4 Oct 2024 19:14:55 +0300 Subject: [PATCH] Stream buffer: Fix copy-paste mistake --- third_party/duckstation/gl/stream_buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/duckstation/gl/stream_buffer.cpp b/third_party/duckstation/gl/stream_buffer.cpp index 6fff8b95..b7a40603 100644 --- a/third_party/duckstation/gl/stream_buffer.cpp +++ b/third_party/duckstation/gl/stream_buffer.cpp @@ -148,7 +148,7 @@ namespace { ALWAYS_INLINE void EnsureSyncsWaitedForOffset(u32 offset) { const u32 end = std::min(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]] { + if (!m_sync_objects[m_available_block_index]) [[unlikely]] { Helpers::warn("GL stream buffer: Fence slot we're trying to wait on is not in use"); }