diff options
| author | Jeremy Hayes <jeremy@lunarg.com> | 2016-10-09 13:48:31 -0600 |
|---|---|---|
| committer | Jeremy Hayes <jeremy@lunarg.com> | 2016-10-09 14:33:49 -0600 |
| commit | e4080610fd9ce529a6ebbaa5f6e286245c1098cb (patch) | |
| tree | 622d3230f1068f77097f350f9e9ba7b5298fc74c /demos/cube.cpp | |
| parent | 41f8f567c5919c20e9ac59d4cade4eca22596ced (diff) | |
| download | usermoji-e4080610fd9ce529a6ebbaa5f6e286245c1098cb.tar.xz | |
demos: fix uninitialized variable
Change-Id: If980d3a8d765185148cff0b037cb64e637ae8a75
Diffstat (limited to 'demos/cube.cpp')
| -rw-r--r-- | demos/cube.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/cube.cpp b/demos/cube.cpp index 2937950d..2be97bbc 100644 --- a/demos/cube.cpp +++ b/demos/cube.cpp @@ -1658,7 +1658,7 @@ struct Demo { } vk::ShaderModule prepare_fs() { - size_t size; + size_t size = 0; void *fragShaderCode = read_spv("cube-frag.spv", &size); frag_shader_module = prepare_shader_module(fragShaderCode, size); |
