mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-26 22:31:17 +00:00
Fix uninitialized members of drawInteraction_t in RB_CreateSingleDrawInteractions
This commit is contained in:
parent
cbd59321a8
commit
9c6b835f16
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue