CommonHostInterface: Prevent some potential null pointer dereferences

This commit is contained in:
Albert Liu
2020-07-21 17:14:11 -07:00
parent c8b6712010
commit 855fc9a31c
2 changed files with 8 additions and 2 deletions

View File

@ -484,6 +484,9 @@ void QtHostInterface::connectDisplaySignals(QtDisplayWidget* widget)
void QtHostInterface::updateDisplayState()
{
if (!m_display)
return;
// this expects the context to get moved back to us afterwards
m_display->DoneRenderContextCurrent();