From: havoc Date: Tue, 20 Nov 2007 23:04:41 +0000 (+0000) Subject: don't call lightning beam vertex fogging code BEFORE the vertex data is X-Git-Tag: xonotic-v0.1.0preview~2775 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=26580cf9927d86097895733e661f66ea0827fe35;p=xonotic%2Fdarkplaces.git 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 --- 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 {