summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/renderergl1/tr_shader.c2
-rw-r--r--src/renderergl2/tr_shader.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/renderergl1/tr_shader.c b/src/renderergl1/tr_shader.c
index c44925a8..1408902d 100644
--- a/src/renderergl1/tr_shader.c
+++ b/src/renderergl1/tr_shader.c
@@ -848,6 +848,8 @@ static qboolean ParseStage( shaderStage_t *stage, char **text )
{
vec3_t color;
+ VectorClear( color );
+
ParseVector( text, 3, color );
stage->constantColor[0] = 255 * color[0];
stage->constantColor[1] = 255 * color[1];
diff --git a/src/renderergl2/tr_shader.c b/src/renderergl2/tr_shader.c
index 1c7e452c..9b0e64bb 100644
--- a/src/renderergl2/tr_shader.c
+++ b/src/renderergl2/tr_shader.c
@@ -1092,6 +1092,8 @@ static qboolean ParseStage( shaderStage_t *stage, char **text )
{
vec3_t color;
+ VectorClear( color );
+
ParseVector( text, 3, color );
stage->constantColor[0] = 255 * color[0];
stage->constantColor[1] = 255 * color[1];