|author||Ryan C. Gordon <email@example.com>||Fri Jul 17 11:16:35 2020 -0400|
|committer||Ryan C. Gordon <firstname.lastname@example.org>||Fri Jul 17 11:16:35 2020 -0400|
metal: Make sure we have a command buffer available before trying to present. This fixes a case where you render to the backbuffer, then render to a render target, set the current target back to the backbuffer, and then present without drawing anything else; in this circumstance, the Present command would never happen. Fixes Bugzilla #5011.