- 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:
Randy Heit 2010-07-30 03:21:13 +00:00
parent 6e6640ef07
commit 8d5ca6501a

View file

@ -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;
}