Merge pull request #652 from billhollings/master

Fix race condition between swapchain image destruction and presentation completion callback