mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
VideoBackends:Metal: Fix min/max lod when setting non-zero-based samplers
This commit is contained in:
parent
4b7600f20f
commit
ffb73f43e1
@ -809,8 +809,8 @@ void Metal::StateTracker::PrepareRender()
|
|||||||
m_dirty_samplers &= ~pipe->GetSamplers();
|
m_dirty_samplers &= ~pipe->GetSamplers();
|
||||||
NSRange range = RangeOfBits(dirty);
|
NSRange range = RangeOfBits(dirty);
|
||||||
[enc setFragmentSamplerStates:&m_state.samplers[range.location]
|
[enc setFragmentSamplerStates:&m_state.samplers[range.location]
|
||||||
lodMinClamps:m_state.sampler_min_lod.data()
|
lodMinClamps:&m_state.sampler_min_lod[range.location]
|
||||||
lodMaxClamps:m_state.sampler_max_lod.data()
|
lodMaxClamps:&m_state.sampler_max_lod[range.location]
|
||||||
withRange:range];
|
withRange:range];
|
||||||
}
|
}
|
||||||
if (m_state.perf_query_group != m_current.perf_query_group)
|
if (m_state.perf_query_group != m_current.perf_query_group)
|
||||||
|
Loading…
Reference in New Issue
Block a user