X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fgenerate.cpp;h=158bb4cc91b67b39239358c70bf0237ef5821ed0;hp=09a776afb7f60bb61d2bdc47d0a8f3fb9e470b3e;hb=7335009e18ecbf53ad9f59d64eed2ed5abbe7b8b;hpb=30f676460bb6e87fd7ca2532e507b97965c4a407 diff --git a/source/glsl/generate.cpp b/source/glsl/generate.cpp index 09a776af..158bb4cc 100644 --- a/source/glsl/generate.cpp +++ b/source/glsl/generate.cpp @@ -191,6 +191,9 @@ void TypeResolver::visit(BasicTypeDeclaration &type) if(basic_base->kind==BasicTypeDeclaration::VECTOR) { type.kind = BasicTypeDeclaration::MATRIX; + /* A matrix's base type is its column vector type. This will put + the column vector's size, i.e. the matrix's row count, in the high + half of the size. */ type.size |= basic_base->size<<16; }