]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_particles.c
avoid NULL pointer access if a surface had an unsupported type
[xonotic/darkplaces.git] / cl_particles.c
index 3448959704d239328ea055fb7b7425ac7861fa3a..79b0cf4fccd2afc6e3aa53218c118f9c78217a52 100644 (file)
@@ -2543,7 +2543,7 @@ void R_DrawParticle_TransparentCallback(const entity_render_t *ent, const rtligh
                        // note: lighting is not cheap!
                        if (particletype[p->typeindex].lighting)
                        {
-                               R_CompleteLightPoint(ambient, diffuse, diffusenormal, p->org, true);
+                               R_CompleteLightPoint(ambient, diffuse, diffusenormal, p->org, true, false);
                                c4f[0] *= (ambient[0] + 0.5 * diffuse[0]);
                                c4f[1] *= (ambient[1] + 0.5 * diffuse[1]);
                                c4f[2] *= (ambient[2] + 0.5 * diffuse[2]);