OpenGLHostDisplay: Fix crash when context creation fails

This commit is contained in:
Connor McLaughlin 2021-05-18 23:20:20 +10:00
parent 4ea7dc79db
commit 0e59a14c82
1 changed files with 1 additions and 0 deletions

View File

@ -381,6 +381,7 @@ bool OpenGLHostDisplay::CreateRenderDevice(const WindowInfo& wi, std::string_vie
if (!m_gl_context)
{
Log_ErrorPrintf("Failed to create any GL context");
m_gl_context.reset();
return false;
}