mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-02-05 03:34:25 +00:00
ref_soft: fix crash when y < -height
This commit is contained in:
parent
c082e46662
commit
ae7ed03376
@ -95,7 +95,11 @@ static void R_DrawStretchPicImplementation( int x, int y, int w, int h, int s1,
|
|||||||
//gEngfuncs.Con_Printf ("pixels is %p\n", pic->pixels[0] );
|
//gEngfuncs.Con_Printf ("pixels is %p\n", pic->pixels[0] );
|
||||||
|
|
||||||
height = h;
|
height = h;
|
||||||
if (y < 0)
|
|
||||||
|
if( y < -h ) // out of display, out of bounds
|
||||||
|
return;
|
||||||
|
|
||||||
|
if( y < 0 )
|
||||||
{
|
{
|
||||||
skip = -y;
|
skip = -y;
|
||||||
height += y;
|
height += y;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user