]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_shadow.c
new r_stereo modes (horiz and vert split)
[xonotic/darkplaces.git] / r_shadow.c
index d6057792051f42d35357cdf25591519421e9584e..fa594fdeda3fe6ea44d07d4ec622c88b88778603 100644 (file)
@@ -6029,6 +6029,8 @@ void R_CompleteLightPoint(vec3_t ambientcolor, vec3_t diffusecolor, vec3_t diffu
                        for (i = 0; i < numlights; i++)
                        {
                                dlight = (dlight_t *) Mem_ExpandableArray_RecordAtIndex(&r_shadow_worldlightsarray, i);
+                               if (!dlight)
+                                       continue;
                                light = &dlight->rtlight;
                                if (!(light->flags & flag))
                                        continue;