From 9363b27b1b40747a40d0ad4367632d428e345d08 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 13 Nov 2009 18:46:34 +0000 Subject: [PATCH] fix two typos in last commit git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9481 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index 7a216456..cffd2007 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -2872,7 +2872,7 @@ void R_Main_ResizeViewCache(void) { int numentities = r_refdef.scene.numentities; int numclusters = r_refdef.scene.worldmodel ? r_refdef.scene.worldmodel->brush.num_pvsclusters : 1; - int numclusterbytes = r_refdef.scene.worldmodel ? r_refdef.scene.worldmodel->brush.num_pvsclusterbytes : 1 + int numclusterbytes = r_refdef.scene.worldmodel ? r_refdef.scene.worldmodel->brush.num_pvsclusterbytes : 1; int numleafs = r_refdef.scene.worldmodel ? r_refdef.scene.worldmodel->brush.num_leafs : 1; int numsurfaces = r_refdef.scene.worldmodel ? r_refdef.scene.worldmodel->num_surfaces : 1; if (r_refdef.viewcache.maxentities < numentities) @@ -2885,6 +2885,7 @@ void R_Main_ResizeViewCache(void) if (r_refdef.viewcache.world_numclusters != numclusters) { r_refdef.viewcache.world_numclusters = numclusters; + r_refdef.viewcache.world_numclusterbytes = numclusterbytes; if (r_refdef.viewcache.world_pvsbits) Mem_Free(r_refdef.viewcache.world_pvsbits); r_refdef.viewcache.world_pvsbits = Mem_Alloc(r_main_mempool, r_refdef.viewcache.world_numclusterbytes); -- 2.39.2