projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4055468
)
mesa: Initialize member variables in ir_to_mesa_src_reg constructor.
author
Vinson Lee
<vlee@vmware.com>
Sun, 22 Aug 2010 07:09:43 +0000
(
00:09
-0700)
committer
Vinson 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
patch
|
blob
|
history
diff --git
a/src/mesa/program/ir_to_mesa.cpp
b/src/mesa/program/ir_to_mesa.cpp
index 8df85dc3ea11bd78ee4b9d883868d922898fc717..676f68e5a026e377cd3a9cb3382c6d5226924f1a 100644
(file)
--- 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 */