- m.pointer_vertex = e->vert[0];
- R_Mesh_State(&m);
-
- GL_Color(alpha, alpha, alpha, 1);
-
- GL_LockArrays(0, numverts);
- R_Mesh_Draw(numverts, numtriangles, explosiontris[0]);
- GL_LockArrays(0, 0);
+ R_Mesh_TextureState(&m);
+ for (surfacelistindex = 0;surfacelistindex < numsurfaces;surfacelistindex++)
+ {
+ const explosion_t *e = explosion + surfacelist[surfacelistindex];
+ R_Mesh_VertexPointer(e->vert[0], 0, 0);
+ // 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], 0, 0);
+ GL_LockArrays(0, 0);
+ }