those should be initialised to something
This commit is contained in:
1 parent
7dd3fb128b
commit
d3bebe8522
1 file changed
+5
-5
+5
-5
@@ -2809,11 +2809,6 @@ void R_ClipSprites(drawseg_t* dsstart, portal_t* portal)
|
||||
drawseg_t* ds;
|
||||
INT32 i;
|
||||
|
||||
if (visspritecount - clippedvissprites <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// e6y
|
||||
// Reducing of cache misses in the following R_DrawSprite()
|
||||
// Makes sense for scenes with huge amount of drawsegs.
|
||||
@@ -2823,6 +2818,11 @@ void R_ClipSprites(drawseg_t* dsstart, portal_t* portal)
|
||||
drawsegs_xranges[i].count = 0;
|
||||
}
|
||||
|
||||
if (visspritecount - clippedvissprites <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (drawsegs_xrange_size < maxdrawsegs)
|
||||
{
|
||||
// haleyjd: fix reallocation to track 2x size
|
||||
|
||||
Reference in new issue
Block a user