fix colormod broken in 977781a621

This commit is contained in:
Garux 2021-11-13 18:26:12 +03:00
parent 6c2d7767cf
commit 150c3027b0
2 changed files with 4 additions and 4 deletions

View File

@ -1647,7 +1647,7 @@ const image_t *ImageLoad( const char *name );
/* shaders.c */
void ColorMod( const colorMod_t *am, int numVerts, bspDrawVert_t *drawVerts );
void ColorMod( const colorMod_t *colormod, int numVerts, bspDrawVert_t *drawVerts );
void TCMod( const tcMod_t& mod, Vector2& st );

View File

@ -45,9 +45,9 @@ static int numCustSurfaceParms;
routines for dealing with vertex color/alpha modification
*/
void ColorMod( const colorMod_t *cm, int numVerts, bspDrawVert_t *drawVerts ){
void ColorMod( const colorMod_t *colormod, int numVerts, bspDrawVert_t *drawVerts ){
/* dummy check */
if ( cm == NULL || numVerts < 1 || drawVerts == NULL ) {
if ( colormod == NULL || numVerts < 1 || drawVerts == NULL ) {
return;
}
@ -56,7 +56,7 @@ void ColorMod( const colorMod_t *cm, int numVerts, bspDrawVert_t *drawVerts ){
for ( bspDrawVert_t& dv : Span( drawVerts, numVerts ) )
{
/* walk colorMod list */
for ( ; cm != NULL; cm = cm->next )
for ( const colorMod_t *cm = colormod; cm != NULL; cm = cm->next )
{
float c;
/* default */