[d3d9] Only dirty ff pixel shader if set texture is in PS binding range

This commit is contained in:
Joshua Ashton 2020-05-07 16:14:11 +01:00
parent 27b9736626
commit 774f74cd36
1 changed files with 1 additions and 1 deletions

View File

@ -3525,7 +3525,7 @@ namespace dxvk {
// We need to check our ops and disable respective stages.
// Given we have transition from a null resource to
// a valid resource or vice versa.
if (pTexture == nullptr || m_state.textures[StateSampler] == nullptr)
if (StateSampler < 16 && (pTexture == nullptr || m_state.textures[StateSampler] == nullptr))
m_flags.set(D3D9DeviceFlag::DirtyFFPixelShader);
auto oldTexture = GetCommonTexture(m_state.textures[StateSampler]);