Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vo_gpu: d3d11: check for NULL backbuffer in start_frame
In a lost device scenario, resize() will fail and p->backbuffer will be NULL. We can't recover from lost devices yet, but we should still check for a NULL backbuffer in start_frame() rather than crashing. Also remove a NULL check for p->swapchain. This was a red herring, since p->swapchain never becomes NULL in an error condition, but p->backbuffer actually does. This should fix the crash in mpv-player#5320, but it doesn't fix the underlying reason for the lost device (which is probably a driver bug.)
- Loading branch information