CommonHostInterface: Prevent some potential null pointer dereferences

This commit is contained in:
Albert Liu committed 2020-07-21 17:14:11 -07:00
1 parent c8b6712010
commit 855fc9a31c
2 files changed
+8 -2

No files matched your search

+3
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();