From: Vinson Lee Date: Sun, 22 Aug 2010 07:09:43 +0000 (-0700) Subject: mesa: Initialize member variables in ir_to_mesa_src_reg constructor. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48c289fb552a3d363b505514b6ea22467f00e318;p=mesa.git mesa: Initialize member variables in ir_to_mesa_src_reg constructor. The default constructor did not initialize some member variables. --- diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 8df85dc3ea1..676f68e5a02 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -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 */