mono/MonoGame — pull request #2014 by prollin (2013-09-21 20:46:32+00:00)
Title: Fix potential framebuffer corruption on iOS

Remove unnecessary call in DestroyFramebuffer that can cause framebuffer corruption if a user framebuffer is bound when called.

This condition can happen when creating and using a separate RenderTarget at startup (for UI rendering for example). It causes an error to be reported in Instruments (Zero Sized Framebuffer Attachment) on all devices except iPhone 5S where it just fail to render anything on the separate RenderTarget (drivers must be a bit more strict).

This fix has been tested on iPad Mini, iPhone 5 and iPhone 5S