Fix uninitialized members of drawInteraction_t in RB_CreateSingleDrawInteractions

This commit is contained in:
Turo Lamminen 2021-01-26 12:33:00 +02:00 committed by Daniel Gibson
parent cbd59321a8
commit 9c6b835f16

View file

@ -694,6 +694,10 @@ void RB_CreateSingleDrawInteractions( const drawSurf_t *surf, void (*DrawInterac
const idMaterial *lightShader = vLight->lightShader;
const float *lightRegs = vLight->shaderRegisters;
drawInteraction_t inter;
inter.diffuseMatrix[0].Zero();
inter.diffuseMatrix[1].Zero();
inter.specularMatrix[0].Zero();
inter.specularMatrix[1].Zero();
if ( r_skipInteractions.GetBool() || !surf->geo || !surf->geo->ambientCache ) {
return;