summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/D3DState.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2023-02-13 16:05:51 +1300
committerGitHub <noreply@github.com>2023-02-13 16:05:51 +1300
commitf37113204fe8e930c4e33e5e0149fbe0309fe425 (patch)
tree9974c89131a5e1092f6551034926d9de0c32413e /Source/Core/VideoBackends/D3D/D3DState.cpp
parent2c24d07837b9ab94219de592adf34a35a2dc897e (diff)
parentaf313f84198d2eb52690b406164eebcb1866d251 (diff)
Merge pull request #11550 from iwubcode/set_common_samplers_count
VideoCommon: add constant value for maximum number of pixel samplers
Diffstat (limited to 'Source/Core/VideoBackends/D3D/D3DState.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D/D3DState.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/D3D/D3DState.cpp b/Source/Core/VideoBackends/D3D/D3DState.cpp
index 66ccec2416..8ab1991e90 100644
--- a/Source/Core/VideoBackends/D3D/D3DState.cpp
+++ b/Source/Core/VideoBackends/D3D/D3DState.cpp
@@ -205,7 +205,7 @@ u32 StateManager::UnsetTexture(ID3D11ShaderResourceView* srv)
{
u32 mask = 0;
- for (u32 index = 0; index < 8; ++index)
+ for (u32 index = 0; index < VideoCommon::MAX_PIXEL_SHADER_SAMPLERS; ++index)
{
if (m_current.textures[index] == srv)
{