Axiom.RenderSystems.OpenGL.GLSL.GLSLLinkProgramManager.SetActiveFragmentShader C# (CSharp) Method

SetActiveFragmentShader() public method

Set the active fragment shader for the next rendering state.
The active program object will be cleared. Normally called from the GLSLGpuProgram.BindProgram and UnbindProgram methods
public SetActiveFragmentShader ( GLSLGpuProgram fragmentProgram ) : void
fragmentProgram GLSLGpuProgram
return void
		public void SetActiveFragmentShader( GLSLGpuProgram fragmentProgram )
		{
			if ( fragmentProgram != activeFragmentProgram )
			{
				activeFragmentProgram = fragmentProgram;

				// active link program is no longer valid
				activeLinkProgram = null;

				// change back to fixed pipeline
				Gl.glUseProgramObjectARB( 0 );
			}
		}