From 8baff3e83faae79b4385bd07f12e643989bf5293 Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Fri, 30 Mar 2012 20:04:21 +0000 Subject: [PATCH] Silence more errors in Valgrind --- reaction/code/renderergl2/tr_model.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reaction/code/renderergl2/tr_model.c b/reaction/code/renderergl2/tr_model.c index 391ba8ed..193eba09 100644 --- a/reaction/code/renderergl2/tr_model.c +++ b/reaction/code/renderergl2/tr_model.c @@ -641,6 +641,8 @@ static qboolean R_LoadMD3(model_t * mod, int lod, void *buffer, int bufferSize, if (!r_recalcMD3Normals->integer) VectorCopy(v->normal, normal); + else + VectorClear(normal); #if 1 R_CalcTangentSpace(tangent, bitangent, normal, v0, v1, v2, t0, t1, t2);