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:
parent
48b3b3ee85
commit
594f04d4ed
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user