summaryrefslogtreecommitdiff
path: root/src/mesa/program
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-03-11 09:25:22 -0700
committerBrian Paul <brianp@vmware.com>2011-03-11 09:25:22 -0700
commite0e94026a0648d6b33d6b7cf2b9b01429cf945e4 (patch)
tree516fd694c002e29ff6183d6064111b7bf88e3eb2 /src/mesa/program
parent8cc84b3e454cf03c71282322e988f03bc4a1baa3 (diff)
mesa: move location of some geometry program limits
The gl_program_constants struct is for limits that are applicable to any/all shader stages. Move the geometry shader-only fields into the gl_constants struct. Remove redundant MaxGeometryUniformComponents field too.
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 9c77f38759..c4704fe6b4 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -2460,7 +2460,7 @@ check_resources(const struct gl_context *ctx,
break;
case MESA_GEOMETRY_PROGRAM:
if (_mesa_bitcount(prog->SamplersUsed) >
- ctx->Const.GeometryProgram.MaxGeometryTextureImageUnits) {
+ ctx->Const.MaxGeometryTextureImageUnits) {
fail_link(shader_program, "Too many geometry shader texture samplers");
}
if (prog->Parameters->NumParameters >