From af313f84198d2eb52690b406164eebcb1866d251 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Fri, 10 Feb 2023 00:28:06 -0600 Subject: VideoCommon: add constant value to set the allowed maximum number of pixel samplers --- Source/Core/VideoBackends/D3D/D3DState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoBackends/D3D/D3DState.cpp') 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) { -- cgit v1.2.3