glsl2: Use gl_DepthRange's proper name.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 7 Aug 2010 09:28:40 +0000 (02:28 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Aug 2010 18:42:37 +0000 (11:42 -0700)
It was being incorrectly added as gl_DepthRangeParameters, which is the
type name, not the variable name.

src/glsl/ir_variable.cpp

index d9a16d4..d88cb51 100644 (file)
@@ -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",