mirror of https://github.com/doitsujin/dxvk
[d3d9] Check for null image in D3D9DeviceEx::FlushImage()
This commit is contained in:
parent
83dc4678df
commit
61dd3b62d1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue