summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-09-21 10:08:38 -0700
committerEric Anholt <eric@anholt.net>2010-09-21 10:09:46 -0700
commitb5bb21562942dab7571ef748c3ca562a66f25b33 (patch)
treef41a0cb05afb829101ff7a7eceb702827f2cfa41
parentb556bb7c44236a9fae54f58cc03e1d05eaa2124f (diff)
glsl: Add definition of gl_TextureMatrix inverse/transpose builtins.
Fixes glsl2/builtin-texturematrix. Bug #30196.
-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 3fed4d9e6e..1eff740ef9 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"));