DRMDisplay: Restore previous framebuffer on shutdown

This commit is contained in:
Connor McLaughlin
2021-06-21 22:04:59 +10:00
parent 7b87b386a9
commit 859c78fdc0
3 changed files with 24 additions and 0 deletions

View File

@ -21,6 +21,8 @@ ContextEGLGBM::~ContextEGLGBM()
Assert(!m_current_present_buffer);
#endif
m_drm_display.RestoreBuffer();
// We have to destroy the context before the surface/device.
// Leaving it to the base class would be too late.
DestroySurface();