1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +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); DxvkContextFlag::GpClearRenderTargets);
m_flags.set( m_flags.set(
DxvkContextFlag::GpDirtyFramebuffer,
DxvkContextFlag::GpDirtyPipeline, DxvkContextFlag::GpDirtyPipeline,
DxvkContextFlag::GpDirtyPipelineState, DxvkContextFlag::GpDirtyPipelineState,
DxvkContextFlag::GpDirtyResources, DxvkContextFlag::GpDirtyResources,
@ -649,8 +650,7 @@ namespace dxvk {
// If not, we need to create a temporary framebuffer. // If not, we need to create a temporary framebuffer.
int32_t attachmentIndex = -1; int32_t attachmentIndex = -1;
if (m_state.om.framebuffer != nullptr if (m_state.om.framebuffer->isFullSize(imageView))
&& m_state.om.framebuffer->isFullSize(imageView))
attachmentIndex = m_state.om.framebuffer->findAttachment(imageView); attachmentIndex = m_state.om.framebuffer->findAttachment(imageView);
if (attachmentIndex < 0) { if (attachmentIndex < 0) {