mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-25 11:19:59 +01:00
ref_soft: fix crash when y < -height
This commit is contained in:
parent
253eb25a3f
commit
5e60c3c956
@ -95,7 +95,11 @@ void R_DrawStretchPicImplementation( int x, int y, int w, int h, int s1, int t1,
|
||||
//gEngfuncs.Con_Printf ("pixels is %p\n", pic->pixels[0] );
|
||||
|
||||
height = h;
|
||||
if (y < 0)
|
||||
|
||||
if( y < -h ) // out of display, out of bounds
|
||||
return;
|
||||
|
||||
if( y < 0 )
|
||||
{
|
||||
skip = -y;
|
||||
height += y;
|
||||
|
Loading…
Reference in New Issue
Block a user