mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-13 19:29:14 +01:00
[dxvk] Fix partial clears for mismatched framebuffer attachment sizes
Fixes an issue in Borderlands: The Pre-Sequel, which binds a 512x512 color attachment and a full-screen depth buffer at the same time and then attempts to clear the depth buffer.
This commit is contained in:
parent
9c5102e257
commit
dfe2922136
@ -2394,7 +2394,8 @@ namespace dxvk {
|
||||
// so that we can avoid spilling the render pass if it is.
|
||||
int32_t attachmentIndex = -1;
|
||||
|
||||
if (m_state.om.framebuffer != nullptr)
|
||||
if (m_state.om.framebuffer != nullptr
|
||||
&& 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