1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 01:24:11 +01:00

[dxvk] Fixed bug where resource bindings would not be updated after rebinding the pipeline

This commit is contained in:
Philip Rebohle 2017-12-18 16:16:21 +01:00
parent 4d01517dd8
commit c44b50ae4d

View File

@ -177,9 +177,15 @@ namespace dxvk {
if (shaderStage->shader != shader) {
shaderStage->shader = shader;
m_flags.set(stage == VK_SHADER_STAGE_COMPUTE_BIT
? DxvkContextFlag::CpDirtyPipeline
: DxvkContextFlag::GpDirtyPipeline);
if (stage == VK_SHADER_STAGE_COMPUTE_BIT) {
m_flags.set(
DxvkContextFlag::CpDirtyPipeline,
DxvkContextFlag::CpDirtyResources);
} else {
m_flags.set(
DxvkContextFlag::GpDirtyPipeline,
DxvkContextFlag::GpDirtyResources);
}
}
}