projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20c691b
)
glsl: Initialize member variable is_ubo_var in constructor.
author
Vinson Lee
<vlee@freedesktop.org>
Sat, 8 Jun 2013 20:46:54 +0000
(13:46 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Fri, 28 Jun 2013 04:51:32 +0000
(21:51 -0700)
Fixes "Uninitialized scalar field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/link_uniforms.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/link_uniforms.cpp
b/src/glsl/link_uniforms.cpp
index 208778e4ada6297facbc8932b71634b2d3272474..35ace1ec3fb32bbd2e9da852ea2eb534a0c87f10 100644
(file)
--- a/
src/glsl/link_uniforms.cpp
+++ b/
src/glsl/link_uniforms.cpp
@@
-157,7
+157,7
@@
class count_uniform_size : public program_resource_visitor {
public:
count_uniform_size(struct string_to_uint_map *map)
: num_active_uniforms(0), num_values(0), num_shader_samplers(0),
- num_shader_uniform_components(0), map(map)
+ num_shader_uniform_components(0),
is_ubo_var(false),
map(map)
{
/* empty */
}