]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_explosion.c
don't crash if r_restart is used in startup scripts before anything starts the video...
[xonotic/darkplaces.git] / r_explosion.c
index 6f2c36eceb41b265d0db37af50e479ebac120432..283bbe81baea01fdc848cc2fcfdf2230134a7446 100644 (file)
@@ -199,7 +199,8 @@ static void R_DrawExplosion_TransparentCallback(const entity_render_t *ent, cons
        {
                const explosion_t *e = explosion + surfacelist[surfacelistindex];
                R_Mesh_VertexPointer(e->vert[0]);
-               GL_Color(e->alpha, e->alpha, e->alpha, 1);
+               // FIXME: fixed function path can't properly handle r_view.colorscale > 1
+               GL_Color(e->alpha * r_view.colorscale, e->alpha * r_view.colorscale, e->alpha * r_view.colorscale, 1);
                GL_LockArrays(0, numverts);
                R_Mesh_Draw(0, numverts, numtriangles, explosiontris[0]);
                GL_LockArrays(0, 0);