mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 10:24:12 +01:00
[dxvk] Begin render pass in clearImageViewFb if necessary
Otherwise, we might end up calling vkCmdClearAttachments outside a render pass instance, which is invalid.
This commit is contained in:
parent
0d40c20aef
commit
1fb8b5ec69
@ -2303,6 +2303,10 @@ namespace dxvk {
|
||||
imageView->imageInfo().layout,
|
||||
imageView->imageInfo().stages,
|
||||
imageView->imageInfo().access);
|
||||
} else {
|
||||
// Make sure the render pass is active so
|
||||
// that we can actually perform the clear
|
||||
this->startRenderPass();
|
||||
}
|
||||
|
||||
// Perform the actual clear operation
|
||||
|
Loading…
Reference in New Issue
Block a user