mirror of https://github.com/doitsujin/dxvk
[d3d9] Only dirty ff pixel shader if set texture is in PS binding range
This commit is contained in:
parent
27b9736626
commit
774f74cd36
|
@ -3525,7 +3525,7 @@ namespace dxvk {
|
||||||
// We need to check our ops and disable respective stages.
|
// We need to check our ops and disable respective stages.
|
||||||
// Given we have transition from a null resource to
|
// Given we have transition from a null resource to
|
||||||
// a valid resource or vice versa.
|
// 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);
|
m_flags.set(D3D9DeviceFlag::DirtyFFPixelShader);
|
||||||
|
|
||||||
auto oldTexture = GetCommonTexture(m_state.textures[StateSampler]);
|
auto oldTexture = GetCommonTexture(m_state.textures[StateSampler]);
|
||||||
|
|
Loading…
Reference in New Issue