projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae00e34
)
glsl: Initialize variable in ir_derefence_array::constant_expression_value
author
Vinson Lee
<vlee@vmware.com>
Wed, 13 Oct 2010 21:21:08 +0000
(14:21 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Wed, 13 Oct 2010 21:21:08 +0000
(14:21 -0700)
Completely initialize data passed to ir_constant constructor.
Fixes piglit glsl-mat-from-int-ctor-03 valgrind uninitialized value
error on softpipe.
src/glsl/ir_constant_expression.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ir_constant_expression.cpp
b/src/glsl/ir_constant_expression.cpp
index 61a708f6e2ddf436338637820fab2f36be377a2e..8301e680278d52046695c85cef208c3d6c0875d0 100644
(file)
--- a/
src/glsl/ir_constant_expression.cpp
+++ b/
src/glsl/ir_constant_expression.cpp
@@
-751,7
+751,7
@@
ir_dereference_array::constant_expression_value()
*/
const unsigned mat_idx = column * column_type->vector_elements;
- ir_constant_data data;
+ ir_constant_data data
= { { 0 } }
;
switch (column_type->base_type) {
case GLSL_TYPE_UINT: