mesa: remove _CurrentFragmentProgram from gl_pipeline_object
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 10 May 2017 00:37:35 +0000 (10:37 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 11 May 2017 04:46:39 +0000 (14:46 +1000)
commit6d7660cf4b7c0c73b4394f09dd149c6b0386115c
treefaf00a30c3b34944ebd954b374a21beeae54b5a6
parent276166c45b5733137f2e562bd0aca84c8652124b
mesa: remove _CurrentFragmentProgram from gl_pipeline_object

This was added in b527dd65c830a as a work around because fixed function
fragment shaders were tracked in ctx->FragmentProgram._Current as
a gl_program rather than gl_shader_program.

However after my refactoring of the program and shader structs
at the end of 2016 which culminated in c505d6d85222, we no longer
need gl_shader_program to track the current program making
_CurrentFragmentProgram obsolete.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
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