]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_light.c
moved the GL_CloseLibrary call a bit
[xonotic/darkplaces.git] / cl_light.c
index 9ab6ea3290da393b7b09cc725f6d41254ae5610e..5d0bcec682acbdee66064ffcc1d9f3521ca7cc5b 100644 (file)
@@ -1,8 +1,6 @@
 
 #include "quakedef.h"
 
-dlight_t cl_dlights[MAX_DLIGHTS];
-
 /*
 ===============
 CL_AllocDlight
@@ -14,6 +12,7 @@ void CL_AllocDlight (entity_render_t *ent, vec3_t org, float radius, float red,
        int             i;
        dlight_t        *dl;
 
+       /*
 // first look for an exact key match
        if (ent)
        {
@@ -22,6 +21,7 @@ void CL_AllocDlight (entity_render_t *ent, vec3_t org, float radius, float red,
                        if (dl->ent == ent)
                                goto dlightsetup;
        }
+       */
 
 // then look for anything else
        dl = cl_dlights;
@@ -34,7 +34,7 @@ void CL_AllocDlight (entity_render_t *ent, vec3_t org, float radius, float red,
 
 dlightsetup:
        memset (dl, 0, sizeof(*dl));
-       dl->ent = ent;
+       //dl->ent = ent;
        VectorCopy(org, dl->origin);
        dl->radius = radius;
        dl->color[0] = red;