summaryrefslogtreecommitdiff
path: root/convmodel.c
diff options
context:
space:
mode:
Diffstat (limited to 'convmodel.c')
-rw-r--r--convmodel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/convmodel.c b/convmodel.c
index 31a062d..89f65c8 100644
--- a/convmodel.c
+++ b/convmodel.c
@@ -332,7 +332,7 @@ Shader_Attrib* parse_shader_attribs(const char* fname) {
FILE* f;
char magic[4];
int type, i;
- int binding_count, target_count, desc_count;
+ int binding_count, target_count, desc_count, opt_count;
char* fpath = arena_alloc(
&arena,
string_len(fname) +
@@ -362,6 +362,7 @@ Shader_Attrib* parse_shader_attribs(const char* fname) {
fread(&binding_count, 4, 1, f);
fread(&target_count, 4, 1, f);
fread(&desc_count, 4, 1, f);
+ fread(&opt_count, 4, 1, f);
assert(binding_count);
for (i = 0; i < binding_count; i++) {
char name[24];