diff options
| author | Scott Mansell <phiren@gmail.com> | 2021-10-10 09:10:52 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-10 09:10:52 +1300 |
| commit | af043c07bbff72410a21541a2880cff1ccbe2175 (patch) | |
| tree | 870bffe166ba60ef71dc8c19b89de59ca438d337 /Source/Core/VideoCommon/RenderState.cpp | |
| parent | 1beaa07793028da7225e979b2baf2e22df011573 (diff) | |
| parent | 9fa26624b02562fb8626c93c45acf2015fc06f40 (diff) | |
Merge pull request #10096 from phire/consolidate_tex_unit_addressing
Consolidate TexUnit addressing
Diffstat (limited to 'Source/Core/VideoCommon/RenderState.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderState.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/RenderState.cpp b/Source/Core/VideoCommon/RenderState.cpp index 291aa9ce91..358c99974e 100644 --- a/Source/Core/VideoCommon/RenderState.cpp +++ b/Source/Core/VideoCommon/RenderState.cpp @@ -224,9 +224,9 @@ BlendingState& BlendingState::operator=(const BlendingState& rhs) void SamplerState::Generate(const BPMemory& bp, u32 index) { - const FourTexUnits& tex = bpmem.tex[index / 4]; - const TexMode0& tm0 = tex.texMode0[index % 4]; - const TexMode1& tm1 = tex.texMode1[index % 4]; + auto tex = bp.tex.GetUnit(index); + const TexMode0& tm0 = tex.texMode0; + const TexMode1& tm1 = tex.texMode1; // GX can configure the mip filter to none. However, D3D and Vulkan can't express this in their // sampler states. Therefore, we set the min/max LOD to zero if this option is used. |
