private void SetRenderTarget( RenderTarget target )
{
Contract.RequiresNotNull( _rttManager, "_rttManager" );
if ( activeViewport != null )
_rttManager.Unbind( activeRenderTarget );
activeRenderTarget = target;
// Switch context if different from current one
GLESContext newContext = null;
newContext = (GLESContext)target[ "GLCONTEXT" ];
if ( newContext != null && this._currentContext != newContext )
{
SwitchContext( newContext );
}
// Bind frame buffer object
_rttManager.Bind( target );
}
/// <summary>