Mesa (glsl2): glsl2: Use gl_DepthRange's proper name.

Kenneth Graunke kwg at kemper.freedesktop.org
Mon Aug 9 18:39:13 UTC 2010


Module: Mesa
Branch: glsl2
Commit: dbff7b541e4be26cc9363956af8595ec052c4e56
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dbff7b541e4be26cc9363956af8595ec052c4e56

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sat Aug  7 02:28:40 2010 -0700

glsl2: Use gl_DepthRange's proper name.

It was being incorrectly added as gl_DepthRangeParameters, which is the
type name, not the variable name.

---

 src/glsl/ir_variable.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glsl/ir_variable.cpp b/src/glsl/ir_variable.cpp
index d9a16d4..d88cb51 100644
--- a/src/glsl/ir_variable.cpp
+++ b/src/glsl/ir_variable.cpp
@@ -141,7 +141,7 @@ generate_110_uniforms(exec_list *instructions,
 
    add_uniform(instructions, state, "gl_TextureMatrix", mat4_array_type);
 
-   add_uniform(instructions, state, "gl_DepthRangeParameters",
+   add_uniform(instructions, state, "gl_DepthRange",
 		state->symbols->get_type("gl_DepthRangeParameters"));
 
    add_uniform(instructions, state, "gl_ClipPlane",




More information about the mesa-commit mailing list