Fix some warnings

This commit is contained in:
Megamouse 2026-03-30 16:22:57 +02:00
parent ec989781a3
commit 474c1a7838
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ namespace rsx
u32 draw_command_barrier_mask = 0;
// Draw-time iterator to the draw_command_barriers struct
mutable rsx::simple_array<barrier_t>::iterator current_barrier_it;
mutable rsx::simple_array<barrier_t>::iterator current_barrier_it {};
// Subranges memory cache
mutable rsx::simple_array<draw_range_t> subranges_store;

View File

@ -2970,7 +2970,7 @@ namespace rsx
auto& cfg = g_fxo->get<gcm_config>();
std::unique_lock<shared_mutex> hle_lock;
std::optional<std::unique_lock<shared_mutex>> hle_lock;
for (u32 i = 0; i < std::size(unmap_status); i++)
{
@ -3011,7 +3011,7 @@ namespace rsx
if (hle_lock)
{
hle_lock.unlock();
hle_lock->unlock();
}
// Pause RSX thread momentarily to handle unmapping