From 26580cf9927d86097895733e661f66ea0827fe35 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 20 Nov 2007 23:04:41 +0000 Subject: [PATCH] don't call lightning beam vertex fogging code BEFORE the vertex data is initialized (this was causing crashes due to highly bogus numbers) this bug came from refactoring the lightning beam code to be able to render multiple beams in one transparent callback git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7709 d7cf8633-e32d-0410-b094-e92efae38249 --- r_lightning.c | 1 - 1 file changed, 1 deletion(-) diff --git a/r_lightning.c b/r_lightning.c index 4438ba77..0b924920 100644 --- a/r_lightning.c +++ b/r_lightning.c @@ -253,7 +253,6 @@ void R_DrawLightningBeam_TransparentCallback(const entity_render_t *ent, const r { // per vertex colors if fog is used R_Mesh_ColorPointer(color4f, 0, 0); - R_FogLightningBeam_Vertex3f_Color4f(vertex3f, color4f, 12, r_lightningbeam_color_red.value * r_view.colorscale, r_lightningbeam_color_green.value * r_view.colorscale, r_lightningbeam_color_blue.value * r_view.colorscale, 1); } else { -- 2.39.2