]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.c
Overhauled shadowmap rendering to use an atlas texture, this is overall a speed loss...
[xonotic/darkplaces.git] / model_brush.c
index 842be1ae26580842924775a2e0fdaa6fe1ede100..ac24a2d7c6d3d6f47211578588b4ab73270b9977 100644 (file)
@@ -2685,7 +2685,7 @@ static void Mod_Q1BSP_LoadFaces(sizebuf_t *sb)
                int stainmapsize = 0;
                mod_alloclightmap_state_t allocState;
 
-               Mod_AllocLightmap_Init(&allocState, lightmapsize, lightmapsize);
+               Mod_AllocLightmap_Init(&allocState, loadmodel->mempool, lightmapsize, lightmapsize);
                for (surfacenum = 0, surface = loadmodel->data_surfaces;surfacenum < count;surfacenum++, surface++)
                {
                        int iu, iv, lightmapx = 0, lightmapy = 0;