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:
parent
962a7f5766
commit
8cb3a266f7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user