public void BlendFunc(OpenGL.BlendingFactorSrc /*GLenum*/ sfactor, OpenGL.BlendingFactorDest /*GLenum*/ dfactor) { var callIsRedundant = d_blendFuncSeperateParams.Equal((int)sfactor, (int)dfactor); if (!callIsRedundant) { OpenGL.GL.BlendFunc(sfactor, dfactor); } }
public void BlendFuncSeparate(OpenGL.BlendingFactorSrc /*GLenum*/ sfactorRGB, OpenGL.BlendingFactorDest /*GLenum*/ dfactorRGB, OpenGL.BlendingFactorSrc /*GLenum*/ sfactorAlpha, OpenGL.BlendingFactorDest /*GLenum*/ dfactorAlpha) { var callIsRedundant = d_blendFuncSeperateParams.Equal((int)sfactorRGB, (int)dfactorRGB, (int)sfactorAlpha, (int)dfactorAlpha); if (!callIsRedundant) { OpenGL.GL.BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); } }