fix uninitialized use of an int when filtering a patch into a tree - possible performance increase after this fix
This commit is contained in:
parent
770b8ea401
commit
2af64392f8
|
|
@ -2147,7 +2147,7 @@ subdivides a patch into an approximate curve and filters it into the tree
|
||||||
|
|
||||||
static int FilterPatchIntoTree( mapDrawSurface_t *ds, tree_t *tree )
|
static int FilterPatchIntoTree( mapDrawSurface_t *ds, tree_t *tree )
|
||||||
{
|
{
|
||||||
int x, y, refs;
|
int x, y, refs = 0;
|
||||||
|
|
||||||
for(y = 0; y + 2 < ds->patchHeight; y += 2)
|
for(y = 0; y + 2 < ds->patchHeight; y += 2)
|
||||||
for(x = 0; x + 2 < ds->patchWidth; x += 2)
|
for(x = 0; x + 2 < ds->patchWidth; x += 2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user