X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fglsl%2Fspirv.cpp;h=481f38fb5ae729b3a16b03725ec7c1f7dd9c71cf;hb=4ecc965177df174ed2d26cfedf24665c8879acda;hp=07d4eb072c0989eb1745405aae0c85ea2ae59fc7;hpb=fea5f2abec9b8e971d8467804f379cfcd81e9ff7;p=libs%2Fgl.git diff --git a/source/glsl/spirv.cpp b/source/glsl/spirv.cpp index 07d4eb07..481f38fb 100644 --- a/source/glsl/spirv.cpp +++ b/source/glsl/spirv.cpp @@ -385,7 +385,7 @@ SpirVGenerator::Id SpirVGenerator::get_variable_type_id(const VariableDeclaratio } else size_id = get_constant_id(get_standard_type_id(BasicTypeDeclaration::INT, 1), 1); - return get_array_type_id(*basic->base_type, size_id, true); + return get_array_type_id(*basic->base_type, size_id, basic->extended_alignment); } return get_id(*var.type_declaration);