diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-10-31 21:37:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-31 21:37:20 +0100 |
| commit | e29cd19f731d11bfa8deefebfd2a867af4f2e348 (patch) | |
| tree | b9e9d5c07b0d5821a67fcfe844e6531b439ac6e5 /Source/Core/VideoBackends/D3D | |
| parent | 224996d652505fd1d95f0d3d7f52ca57c4a617dc (diff) | |
| parent | 5fb6ceac452fa7960301d132f2f044073045564a (diff) | |
Merge pull request #6118 from Tomcc/master
Resolution independent mipmaps (high IR Super Mario Galaxy Fix)
Diffstat (limited to 'Source/Core/VideoBackends/D3D')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/D3DState.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/VideoBackends/D3D/D3DState.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/D3D/D3DState.cpp b/Source/Core/VideoBackends/D3D/D3DState.cpp index 56bcb58fa1..5732ffd21b 100644 --- a/Source/Core/VideoBackends/D3D/D3DState.cpp +++ b/Source/Core/VideoBackends/D3D/D3DState.cpp @@ -299,7 +299,7 @@ ID3D11SamplerState* StateCache::Get(SamplerState state) sampdc.AddressV = address_modes[static_cast<u32>(state.wrap_v.Value())]; sampdc.MaxLOD = state.max_lod / 16.f; sampdc.MinLOD = state.min_lod / 16.f; - sampdc.MipLODBias = (s32)state.lod_bias / 32.0f; + sampdc.MipLODBias = (s32)state.lod_bias / 256.f; if (state.anisotropic_filtering) { diff --git a/Source/Core/VideoBackends/D3D/D3DState.h b/Source/Core/VideoBackends/D3D/D3DState.h index fc7cda88b3..0c083f7c1b 100644 --- a/Source/Core/VideoBackends/D3D/D3DState.h +++ b/Source/Core/VideoBackends/D3D/D3DState.h @@ -40,7 +40,7 @@ private: std::unordered_map<u32, ID3D11DepthStencilState*> m_depth; std::unordered_map<u32, ID3D11RasterizerState*> m_raster; std::unordered_map<u32, ID3D11BlendState*> m_blend; - std::unordered_map<u32, ID3D11SamplerState*> m_sampler; + std::unordered_map<SamplerState::StorageType, ID3D11SamplerState*> m_sampler; }; namespace D3D |
