]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't call lightning beam vertex fogging code BEFORE the vertex data is
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 20 Nov 2007 23:04:41 +0000 (23:04 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 20 Nov 2007 23:04:41 +0000 (23:04 +0000)
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

index 4438ba77c1aecb97c99476b372c451834cf531c2..0b92492084328f68b59fb922977d52d99a042727 100644 (file)
@@ -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
        {