1
0
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:
Philip Rebohle 2019-07-24 23:41:56 +02:00
parent 9c5102e257
commit dfe2922136
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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) {