mesa: Remove ad-hoc arrays of gl_shader_program.

Now that we have a ctx->Shader.CurrentProgram array, we can just use
it directly.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Paul Berry
2014-01-09 11:32:00 -08:00
parent 69b258cb46
commit 5808c44bab
3 changed files with 3 additions and 15 deletions

View File

@@ -1195,11 +1195,7 @@ st_get_gp_variant(struct st_context *st,
void
st_print_shaders(struct gl_context *ctx)
{
struct gl_shader_program *shProg[3] = {
ctx->Shader.CurrentProgram[MESA_SHADER_VERTEX],
ctx->Shader.CurrentProgram[MESA_SHADER_GEOMETRY],
ctx->Shader.CurrentProgram[MESA_SHADER_FRAGMENT],
};
struct gl_shader_program **shProg = ctx->Shader.CurrentProgram;
unsigned j;
for (j = 0; j < 3; j++) {