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 <imirkin@alum.mit.edu>
This commit is contained in:
Dave Airlie
2019-05-17 11:25:48 +10:00
parent b2d4d08a5c
commit 2bfe5b8556
+2 -1
View File
@@ -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)
{
}