From b5bb21562942dab7571ef748c3ca562a66f25b33 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 21 Sep 2010 10:08:38 -0700 Subject: [PATCH] glsl: Add definition of gl_TextureMatrix inverse/transpose builtins. Fixes glsl2/builtin-texturematrix. Bug #30196. --- src/glsl/ir_variable.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/glsl/ir_variable.cpp b/src/glsl/ir_variable.cpp index 3fed4d9e6ed..1eff740ef96 100644 --- a/src/glsl/ir_variable.cpp +++ b/src/glsl/ir_variable.cpp @@ -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")); -- 2.30.2