]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_crosshairs.c
changed R_Mesh_ system (again), now uses R_Mesh_GetSpace to set up varray_* pointers...
[xonotic/darkplaces.git] / r_crosshairs.c
index 5522a2886c49b62c8952f8cfd4f67bf8df10d608..212d654d787747a18bb640acd2966aa2d068b36e 100644 (file)
@@ -42,6 +42,7 @@ void R_DrawCrosshairSprite(rtexture_t *texture, vec3_t origin, vec_t scale, floa
        R_Mesh_State(&m);
 
        GL_Color(cr * r_colorscale, cg * r_colorscale, cb * r_colorscale, ca);
+       R_Mesh_GetSpace(4);
        varray_texcoord[0][ 0] = 0;varray_texcoord[0][ 1] = 0;
        varray_texcoord[0][ 4] = 0;varray_texcoord[0][ 5] = 1;
        varray_texcoord[0][ 8] = 1;varray_texcoord[0][ 9] = 1;