mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[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:
parent
38838f7428
commit
f095f6385e
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user