mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Polymost: crash prevention for bad pal sprites (and warning in Mapster 3D mode)
git-svn-id: https://svn.eduke32.com/eduke32@1920 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
0bc508eecd
commit
3bc56d267c
1 changed files with 10 additions and 0 deletions
|
@ -2033,6 +2033,16 @@ void drawpoly(double *dpx, double *dpy, int32_t n, int32_t method)
|
|||
if (skyclamphack) method |= 4;
|
||||
pth = gltexcache(globalpicnum,globalpal,method&(~3));
|
||||
|
||||
if (!pth)
|
||||
{
|
||||
if (editstatus)
|
||||
{
|
||||
Bsprintf(ptempbuf, "pth==NULL! (bad pal?) pic=%d pal=%d", globalpicnum, globalpal);
|
||||
polymost_printext256(8,8, editorcolors[15],editorcolors[5], ptempbuf, 0);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (r_fullbrights && pth->flags & 16)
|
||||
if (indrawroomsandmasks)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue