mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- Add a NULL FrontCopySurface check to D3DFB::GetCurrentScreen, because this can apparently
be NULL when starting with -timedemo or -playdemo. (But it never happened for me in the debugger.) SVN r2474 (trunk)
This commit is contained in:
parent
6e6640ef07
commit
8d5ca6501a
1 changed files with 1 additions and 1 deletions
|
@ -1772,7 +1772,7 @@ IDirect3DTexture9 *D3DFB::GetCurrentScreen(D3DPOOL pool)
|
|||
|
||||
assert(pool == D3DPOOL_SYSTEMMEM || pool == D3DPOOL_DEFAULT);
|
||||
|
||||
if (FAILED(FrontCopySurface->GetDesc(&desc)))
|
||||
if (FrontCopySurface == NULL || FAILED(FrontCopySurface->GetDesc(&desc)))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue