Commit 1d01429c authored by Mathias Fröhlich's avatar Mathias Fröhlich

state_stracker: Fix access to uninitialized memory.

Fix an access to uninitialized memory pointed out by valgrind in

Note: This is a candidate for the 8.0 branch.
Signed-off-by: Mathias Fröhlich's avatarMathias Fröhlich <>
parent 74343203
......@@ -2978,7 +2978,7 @@ glsl_to_tgsi_visitor::simplify_cmp(void)
if (!tempWrites) {
memset(tempWrites, 0, sizeof(tempWrites));
memset(tempWrites, 0, sizeof(unsigned) * MAX_TEMPS);
memset(outputWrites, 0, sizeof(outputWrites));
foreach_iter(exec_list_iterator, iter, this->instructions) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment