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

[dxvk] Fix potential state tracking issue when updating render targets

This commit is contained in:
Philip Rebohle 2018-04-26 18:43:19 +02:00
parent 962a7f5766
commit 8cb3a266f7

View File

@ -107,8 +107,11 @@ namespace dxvk {
void DxvkContext::bindRenderTargets(const DxvkRenderTargets& targets) {
m_state.om.renderTargets = targets;
if (m_state.om.framebuffer == nullptr || !m_state.om.framebuffer->renderTargets().matches(targets)) {
m_state.om.renderTargets = targets;
// Create a new framebuffer object next
// time we start rendering something
m_flags.set(DxvkContextFlag::GpDirtyFramebuffer);
} else {
// Don't redundantly spill the render pass if