public override void SetSceneBlending( SceneBlendFactor src, SceneBlendFactor dest )
{
GLESConfig.GlCheckError( this );
All sourceBlend = GetBlendMode( src );
All destBlend = GetBlendMode( dest );
if ( src == SceneBlendFactor.One && dest == SceneBlendFactor.Zero )
{
OpenGL.Disable( All.Blend );
GLESConfig.GlCheckError( this );
}
else
{
// SBF_SOURCE_COLOUR - not allowed for source - http://www.khronos.org/opengles/sdk/1.1/docs/man/
if ( src == SceneBlendFactor.SourceColor )
{
sourceBlend = GetBlendMode( SceneBlendFactor.SourceAlpha );
}
OpenGL.Enable( All.Blend );
GLESConfig.GlCheckError( this );
OpenGL.BlendFunc( sourceBlend, destBlend );
GLESConfig.GlCheckError( this );
}
#if GL_OES_blend_subtract
#endif
}