1
0
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:
Philip Rebohle 2019-05-09 09:09:11 +02:00
parent 0d40c20aef
commit 1fb8b5ec69
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

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