summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/glsl_types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl_types.cpp b/src/compiler/glsl_types.cpp
index 288ddcf5dea..2a77b075c28 100644
--- a/src/compiler/glsl_types.cpp
+++ b/src/compiler/glsl_types.cpp
@@ -2858,7 +2858,7 @@ encode_type_to_blob(struct blob *blob, const glsl_type *type)
/* If we don't have enough bits for length, store it separately. */
if (encoded.strct.length == 0xfffff)
blob_write_uint32(blob, type->length);
- if (encoded.strct.length == 0xf)
+ if (encoded.strct.explicit_alignment == 0xf)
blob_write_uint32(blob, type->explicit_alignment);
for (unsigned i = 0; i < type->length; i++)