mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-27 04:54:15 +01:00
[d3d9] Fix crash when using StretchRect with NULL rts
This commit is contained in:
parent
15fa310bb4
commit
5b7406fed5
@ -944,6 +944,9 @@ namespace dxvk {
|
|||||||
Rc<DxvkImage> dstImage = dstTextureInfo->GetImage();
|
Rc<DxvkImage> dstImage = dstTextureInfo->GetImage();
|
||||||
Rc<DxvkImage> srcImage = srcTextureInfo->GetImage();
|
Rc<DxvkImage> srcImage = srcTextureInfo->GetImage();
|
||||||
|
|
||||||
|
if (dstImage == nullptr || srcImage == nullptr)
|
||||||
|
return D3DERR_INVALIDCALL;
|
||||||
|
|
||||||
const DxvkFormatInfo* dstFormatInfo = imageFormatInfo(dstImage->info().format);
|
const DxvkFormatInfo* dstFormatInfo = imageFormatInfo(dstImage->info().format);
|
||||||
const DxvkFormatInfo* srcFormatInfo = imageFormatInfo(srcImage->info().format);
|
const DxvkFormatInfo* srcFormatInfo = imageFormatInfo(srcImage->info().format);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user