Browse Source

ref_soft: Fix division by zero

pull/2/head
mittorn 6 years ago
parent
commit
fbef500fb3
  1. 3
      r_surf.c

3
r_surf.c

@ -1198,6 +1198,9 @@ void R_DrawSurfaceDecals() @@ -1198,6 +1198,9 @@ void R_DrawSurfaceDecals()
w = w >> r_drawsurf.surfmip;
h = h >> r_drawsurf.surfmip;
if( w < 1 || h < 1 )
continue;
if( x < 0 )
{
s1 += (-x)*(s2-s1) / w;

Loading…
Cancel
Save