Mesa (master): mesa: Initialize member variables in ir_to_mesa_src_reg constructor.
Vinson Lee
vlee at kemper.freedesktop.org
Sun Aug 22 07:11:32 UTC 2010
Module: Mesa
Branch: master
Commit: 48c289fb552a3d363b505514b6ea22467f00e318
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=48c289fb552a3d363b505514b6ea22467f00e318
Author: Vinson Lee <vlee at vmware.com>
Date: Sun Aug 22 00:09:43 2010 -0700
mesa: Initialize member variables in ir_to_mesa_src_reg constructor.
The default constructor did not initialize some member variables.
---
src/mesa/program/ir_to_mesa.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 8df85dc..676f68e 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 */
More information about the mesa-commit
mailing list