mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-25 20:01:04 +00:00
fix overflow check overflowing in R_DrawRepeatMaskedColumn
fixes renderer lock ups with transparent textures in software renderer
This commit is contained in:
parent
62294dfe35
commit
2172c9ddb2
1 changed files with 1 additions and 1 deletions
|
@ -681,7 +681,7 @@ static void R_DrawRepeatMaskedColumn(column_t *col)
|
|||
{
|
||||
while (sprtopscreen < sprbotscreen) {
|
||||
R_DrawMaskedColumn(col);
|
||||
if ((INT64)sprtopscreen + dc_texheight*spryscale > (INT64)INT32_MAX) // prevent overflow
|
||||
if (sprtopscreen + (INT64)dc_texheight*spryscale > (INT64)INT32_MAX) // prevent overflow
|
||||
sprtopscreen = INT32_MAX;
|
||||
else
|
||||
sprtopscreen += dc_texheight*spryscale;
|
||||
|
|
Loading…
Reference in a new issue