]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
changed R_Mesh_ system (again), now uses R_Mesh_GetSpace to set up varray_* pointers...
[xonotic/darkplaces.git] / cl_main.c
index 9488601a2e24e571b08c1665ec804ac871974069..9b70f0fce4781d3706872ea82e0bc6ab20b0610f 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1158,6 +1158,8 @@ void R_DrawLightningBeamCallback(const void *calldata1, int calldata2)
        // (and realize that the whole polygon assembly orients itself to face
        //  the viewer)
 
+       R_Mesh_GetSpace(12);
+
        // polygon 1, verts 0-3
        VectorScale(right, r_lightningbeam_thickness.value, offset);
        R_CalcLightningBeamPolygonVertices(varray_vertex, varray_texcoord[0], b->start, b->end, offset, t1, t2);