[D3D12] Fix state of textures bound to both VS and PS

This commit is contained in:
Triang3l
2020-05-16 19:33:22 +03:00
parent fdd97fc831
commit 8341a48210
3 changed files with 32 additions and 30 deletions

View File

@@ -1409,8 +1409,8 @@ bool D3D12CommandProcessor::IssueDraw(PrimitiveType primitive_type,
// Update the textures - this may bind pipelines.
texture_cache_->RequestTextures(
vertex_shader->GetUsedTextureMask(),
pixel_shader != nullptr ? pixel_shader->GetUsedTextureMask() : 0);
vertex_shader->GetUsedTextureMask() |
(pixel_shader != nullptr ? pixel_shader->GetUsedTextureMask() : 0));
// Check if early depth/stencil can be enabled.
bool early_z;