summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_assemble.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader/slang/slang_assemble.c')
-rw-r--r--src/mesa/shader/slang/slang_assemble.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_assemble.c b/src/mesa/shader/slang/slang_assemble.c
index 6c05e71b8b..2e1e13d1f5 100644
--- a/src/mesa/shader/slang/slang_assemble.c
+++ b/src/mesa/shader/slang/slang_assemble.c
@@ -376,14 +376,16 @@ GLboolean _slang_cleanup_stack (slang_assemble_ctx *A, slang_operation *op)
slang_assembly_typeinfo_destruct (&ti);
return GL_FALSE;
}
- if (ti.spec.type != slang_spec_void)
- if (A->ref == slang_ref_force)
+ if (ti.spec.type != slang_spec_void) {
+ if (A->ref == slang_ref_force) {
size = 4;
+ }
else if (!sizeof_variable (A, &ti.spec, slang_qual_none, 0, &size))
{
slang_assembly_typeinfo_destruct (&ti);
return GL_FALSE;
}
+ }
slang_assembly_typeinfo_destruct (&ti);
/* if nonzero, free it from the stack */