aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demos/tri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/tri.c b/demos/tri.c
index a2c44bda..fa649ca2 100644
--- a/demos/tri.c
+++ b/demos/tri.c
@@ -1258,7 +1258,7 @@ char *demo_read_spv(const char *filename, size_t *psize) {
static VkShaderModule demo_prepare_vs(struct demo *demo) {
void *vertShaderCode;
- size_t size;
+ size_t size = 0;
vertShaderCode = demo_read_spv("tri-vert.spv", &size);