]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_lightning.c
Improved sound resampling. It can handle sounds up to 96KHz stereo at a constant...
[xonotic/darkplaces.git] / r_lightning.c
index 18207a662605b52a4e6fde830933d41f000379d3..e80216ee434206ace92b13d27c9cb33e3dad0a90 100644 (file)
@@ -320,7 +320,9 @@ void R_DrawLightningBeamCallback(const void *calldata1, int calldata2)
        R_Mesh_State(&m);
 
        // draw the 3 polygons as one batch of 6 triangles using the 12 vertices
+       GL_LockArrays(0, 12);
        R_Mesh_Draw(12, 6, r_lightningbeamelements);
+       GL_LockArrays(0, 0);
 }
 
 void R_DrawLightningBeams(void)