mesa: make _CurrentFragmentProgram a gl_program struct pointer
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 3 Nov 2016 22:25:36 +0000 (09:25 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Fri, 6 Jan 2017 00:21:42 +0000 (11:21 +1100)
commitc46a630000a2539e38a448f24a456397ce201a2e
treea9c8fc697557c5821225c4001fbc33c84c64b09a
parent6e3f6097c995a74d4ce52f542413b01ff819c203
mesa: make _CurrentFragmentProgram a gl_program struct pointer

Making this point to a gl_program struct rather than a gl_shader_program
struct will allow use to later also make the CurrentProgram array hold
gl_program structs which in turn will allow for code simpilifcation.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/main/api_validate.c
src/mesa/main/mtypes.h
src/mesa/main/pipelineobj.c
src/mesa/main/shaderapi.c
src/mesa/main/state.c