summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-09-21 10:08:38 -0700
committerEric Anholt <[email protected]>2010-09-22 13:15:59 -0700
commit902dfdaa86451044a396802fa81a8a448919bb3f (patch)
tree852cdec4d7511be3e9619e35373f2a30d67b760b /src
parentc98ce41de3fbef7885e296e8ad28ff0a6480e502 (diff)
glsl: Add definition of gl_TextureMatrix inverse/transpose builtins.
Fixes glsl2/builtin-texturematrix. Bug #30196. (cherry picked from commit b5bb21562942dab7571ef748c3ca562a66f25b33)
Diffstat (limited to 'src')
-rw-r--r--src/glsl/ir_variable.cpp3
1 files changed, 3 insertions, 0 deletions
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"));