main: Change init_program_limits() to use gl_shader_stage.
authorPaul Berry <stereotype441@gmail.com>
Wed, 8 Jan 2014 18:32:18 +0000 (10:32 -0800)
committerPaul Berry <stereotype441@gmail.com>
Thu, 9 Jan 2014 17:31:23 +0000 (09:31 -0800)
commite654216ac7ec2d254685d0ff5f437917747c9bd3
treeff1a8aeb6e17ce761274aa3ebff2d82a967999b2
parentbce8bc0b250c7d64ac7898ba032858963dee6a37
main: Change init_program_limits() to use gl_shader_stage.

This allows the caller to execute it in a loop rather than
hand-rolling a separate call for each stage.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/context.c