Browse Source

ref_soft: fix crash when y < -height

master
mittorn 8 months ago committed by Alibek Omarov
parent
commit
ae7ed03376
  1. 4
      ref/soft/r_draw.c

4
ref/soft/r_draw.c

@ -95,6 +95,10 @@ static void R_DrawStretchPicImplementation( int x, int y, int w, int h, int s1, @@ -95,6 +95,10 @@ static void R_DrawStretchPicImplementation( int x, int y, int w, int h, int s1,
//gEngfuncs.Con_Printf ("pixels is %p\n", pic->pixels[0] );
height = h;
if( y < -h ) // out of display, out of bounds
return;
if( y < 0 )
{
skip = -y;

Loading…
Cancel
Save