mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51:39 +00:00
- 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:
parent
a79b9705cf
commit
30a606ed6b
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue