now calls GL_LockArrays manually around each R_Mesh_Draw call instead of locking...
[xonotic/darkplaces.git] / r_lightning.c
index 18207a6..e80216e 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)