- Fixed crash with textures larger than those supported by the hardware in the D3D backend.

# Conflicts:
#	src/win32/fb_d3d9.cpp
This commit is contained in:
drfrag 2017-11-03 20:12:49 +01:00 committed by drfrag666
parent a79b9705cf
commit 30a606ed6b

View file

@ -2313,9 +2313,14 @@ bool D3DTex::Update()
assert(Box != NULL);
assert(Box->Owner != NULL);
assert(Box->Owner->Tex != NULL);
//assert(Box->Owner->Tex != NULL);
assert(mGameTex != NULL);
if (Box->Owner->Tex == NULL)
{
return false;
}
if (FAILED(Box->Owner->Tex->GetLevelDesc(0, &desc)))
{
return false;
@ -2799,7 +2804,7 @@ void D3DFB::DrawTextureParms (FTexture *img, DrawParms &parms)
if (tex == NULL)
{
assert(tex != NULL);
//assert(tex != NULL);
return;
}