glsl: Add definition of gl_TextureMatrix inverse/transpose builtins.
authorEric Anholt <eric@anholt.net>
Tue, 21 Sep 2010 17:08:38 +0000 (10:08 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 21 Sep 2010 17:09:46 +0000 (10:09 -0700)
Fixes glsl2/builtin-texturematrix.
Bug #30196.

src/glsl/ir_variable.cpp

index 3fed4d9e6ed22a4ccb11e83b0d753da106e23831..1eff740ef96f8a837866d2760febb8ca76b5232f 100644 (file)
@@ -162,6 +162,9 @@ generate_110_uniforms(exec_list *instructions,
                                    state->Const.MaxTextureCoords);
 
    add_uniform(instructions, state, "gl_TextureMatrix", mat4_array_type);
+   add_uniform(instructions, state, "gl_TextureMatrixInverse", mat4_array_type);
+   add_uniform(instructions, state, "gl_TextureMatrixTranspose", mat4_array_type);
+   add_uniform(instructions, state, "gl_TextureMatrixInverseTranspose", mat4_array_type);
 
    add_uniform(instructions, state, "gl_DepthRange",
                state->symbols->get_type("gl_DepthRangeParameters"));