]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.c
an attempt at optimizing msurface_t dlight_cache checks by moving them
[xonotic/darkplaces.git] / model_shared.c
index f54b6da0de902b7d33c755b50d0601501e8cd9b8..80c2237982ac56c34887b526d9f57728f1c49ad1 100644 (file)
@@ -113,7 +113,7 @@ static void mod_newmap(void)
                                        ssize = (surface->lightmapinfo->extents[0] >> 4) + 1;
                                        tsize = (surface->lightmapinfo->extents[1] >> 4) + 1;
                                        memset(surface->lightmapinfo->stainsamples, 255, ssize * tsize * 3);
-                                       surface->cached_dlight = true;
+                                       mod->brushq1.lightmapupdateflags[surfacenum] = true;
                                }
                        }
                }