mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-29 10:24:10 +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> srcImage = srcTextureInfo->GetImage();
|
||||
|
||||
if (dstImage == nullptr || srcImage == nullptr)
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
const DxvkFormatInfo* dstFormatInfo = imageFormatInfo(dstImage->info().format);
|
||||
const DxvkFormatInfo* srcFormatInfo = imageFormatInfo(srcImage->info().format);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user