public void AttachFrameBuffer(FrameBuffer frameBuffer) { DetachFrameBuffer(true); if (frameBuffer != null) { this._currentFrameBuffer = frameBuffer; frameBuffer.MakeCurrent(); } }