]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/spirv.cpp
Fixes for handling extended alignment in GLSL
[libs/gl.git] / source / glsl / spirv.cpp
index 07d4eb072c0989eb1745405aae0c85ea2ae59fc7..481f38fb5ae729b3a16b03725ec7c1f7dd9c71cf 100644 (file)
@@ -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);