[d3d9] Check for null image in D3D9DeviceEx::FlushImage()

This commit is contained in:
Paul Gofman 2023-09-14 18:50:06 -06:00
parent 83dc4678df
commit 61dd3b62d1
1 changed files with 4 additions and 0 deletions

View File

@ -4735,6 +4735,10 @@ namespace dxvk {
UINT Subresource) {
const Rc<DxvkImage> image = pResource->GetImage();
if (image == nullptr)
return D3D_OK;
auto formatInfo = lookupFormatInfo(image->info().format);
auto subresource = pResource->GetSubresourceFromIndex(
formatInfo->aspectMask, Subresource);