mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Guard against out of bounds sprite brightmap
This commit is contained in:
parent
c90d4f8b97
commit
97497fa1a1
1 changed files with 7 additions and 0 deletions
|
|
@ -889,6 +889,13 @@ static void R_DrawVisSprite(vissprite_t *vis)
|
|||
if ((UINT64)overflow_test&0xFFFFFFFF80000000ULL) return; // ditto
|
||||
}
|
||||
|
||||
// Prevent an out of bounds error
|
||||
if (bmpatch && (bmpatch->width != patch->width ||
|
||||
bmpatch->height != patch->height))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
R_SetColumnFunc(BASEDRAWFUNC, false); // hack: this isn't resetting properly somewhere.
|
||||
dc_colormap = vis->colormap;
|
||||
dc_fullbright = colormaps;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue