projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf8d049
)
glsl: silence uninitialized var warning on MinGW
author
Brian Paul
<brianp@vmware.com>
Fri, 27 Feb 2015 20:06:06 +0000
(13:06 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 27 Feb 2015 22:22:25 +0000
(15:22 -0700)
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/glsl/opt_algebraic.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/opt_algebraic.cpp
b/src/glsl/opt_algebraic.cpp
index c3f3842bab37b0b13f91d38e0b4e34703e01323f..c6040bff825474185eb4fe5fa8efb056cedbc634 100644
(file)
--- a/
src/glsl/opt_algebraic.cpp
+++ b/
src/glsl/opt_algebraic.cpp
@@
-866,6
+866,7
@@
ir_algebraic_visitor::handle_expression(ir_expression *ir)
one = new(mem_ctx) ir_constant(1.0, op2_components);
break;
default:
+ one = NULL;
unreachable("unexpected type");
}