[d3d9] Initialize all backbuffers in swapchain creation

Otherwise they are garbage and undefined layout.

Fixes some validation errors in Lumino City #1462
This commit is contained in:
Joshua Ashton 2020-02-21 06:45:02 +00:00
parent 38838f7428
commit f095f6385e
1 changed files with 5 additions and 2 deletions

View File

@ -962,8 +962,11 @@ namespace dxvk {
m_context->beginRecording(
m_device->createCommandList());
m_context->clearColorImage(
swapImage, clearColor, subresources);
for (uint32_t i = 0; i < m_backBuffers.size(); i++) {
m_context->clearColorImage(
m_backBuffers[i]->GetCommonTexture()->GetImage(),
clearColor, subresources);
}
m_device->submitCommandList(
m_context->endRecording(),