summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2019-05-17 11:25:48 +1000
committerDave Airlie <[email protected]>2019-05-17 12:33:09 +1000
commit2bfe5b85561f9317ad2ce28baa06e06155ea3fe7 (patch)
tree388b649a20bf57d0857fbeb8c04fac96b7339937
parentb2d4d08a5cae29759bdbd4ac4e942ea372fe7735 (diff)
glsl: init non-static class member in link uniforms. (v2)
link_uniforms.cpp:477: uninit_member: Non-static class member "shader_storage_blocks_write_access" is not initialized in this constructor nor in any functions that it calls. Reported by coverity. v2: fix 9->0 typo (Ilia) Acked-by: Ilia Mirkin <[email protected]>
-rw-r--r--src/compiler/glsl/link_uniforms.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/glsl/link_uniforms.cpp b/src/compiler/glsl/link_uniforms.cpp
index aa96227a7e1..d588f3fc190 100644
--- a/src/compiler/glsl/link_uniforms.cpp
+++ b/src/compiler/glsl/link_uniforms.cpp
@@ -472,7 +472,8 @@ public:
bool use_std430_as_default)
: prog(prog), map(map), uniforms(uniforms),
use_std430_as_default(use_std430_as_default), values(values),
- bindless_targets(NULL), bindless_access(NULL)
+ bindless_targets(NULL), bindless_access(NULL),
+ shader_storage_blocks_write_access(0)
{
}