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