mesa: Initialize member variables in ir_to_mesa_src_reg constructor.
authorVinson Lee <vlee@vmware.com>
Sun, 22 Aug 2010 07:09:43 +0000 (00:09 -0700)
committerVinson Lee <vlee@vmware.com>
Sun, 22 Aug 2010 07:09:43 +0000 (00:09 -0700)
The default constructor did not initialize some member variables.

src/mesa/program/ir_to_mesa.cpp

index 8df85dc3ea11bd78ee4b9d883868d922898fc717..676f68e5a026e377cd3a9cb3382c6d5226924f1a 100644 (file)
@@ -78,6 +78,10 @@ typedef struct ir_to_mesa_src_reg {
    ir_to_mesa_src_reg()
    {
       this->file = PROGRAM_UNDEFINED;
+      this->index = 0;
+      this->swizzle = 0;
+      this->negate = 0;
+      this->reladdr = NULL;
    }
 
    int file; /**< PROGRAM_* from Mesa */