1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 10:54:16 +01:00

[dxvk] Dirty framebuffer in beginRecording

This guarantees that the framebuffer is never null.
This commit is contained in:
Philip Rebohle 2019-10-11 12:19:45 +02:00
parent 48b3b3ee85
commit 594f04d4ed
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -42,6 +42,7 @@ namespace dxvk {
DxvkContextFlag::GpClearRenderTargets);
m_flags.set(
DxvkContextFlag::GpDirtyFramebuffer,
DxvkContextFlag::GpDirtyPipeline,
DxvkContextFlag::GpDirtyPipelineState,
DxvkContextFlag::GpDirtyResources,
@ -649,8 +650,7 @@ namespace dxvk {
// If not, we need to create a temporary framebuffer.
int32_t attachmentIndex = -1;
if (m_state.om.framebuffer != nullptr
&& m_state.om.framebuffer->isFullSize(imageView))
if (m_state.om.framebuffer->isFullSize(imageView))
attachmentIndex = m_state.om.framebuffer->findAttachment(imageView);
if (attachmentIndex < 0) {