1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-01 19:29:16 +01:00

[d3d9] Manually discard swap chain image view on present

This commit is contained in:
Philip Rebohle 2021-02-21 02:18:55 +01:00
parent e46bf78f31
commit 73a06aea72
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -841,6 +841,7 @@ namespace dxvk {
renderTargets.color[0].view = m_imageViews.at(imageIndex);
renderTargets.color[0].layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
m_context->bindRenderTargets(renderTargets);
m_context->discardImageView(m_imageViews.at(imageIndex), VK_IMAGE_ASPECT_COLOR_BIT);
VkViewport viewport;
viewport.x = float(m_dstRect.left);