mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-04-10 19:15:14 +00:00
OpenGLHostDisplay: Fix crash when context creation fails
This commit is contained in:
parent
4ea7dc79db
commit
0e59a14c82
|
@ -381,6 +381,7 @@ bool OpenGLHostDisplay::CreateRenderDevice(const WindowInfo& wi, std::string_vie
|
||||||
if (!m_gl_context)
|
if (!m_gl_context)
|
||||||
{
|
{
|
||||||
Log_ErrorPrintf("Failed to create any GL context");
|
Log_ErrorPrintf("Failed to create any GL context");
|
||||||
|
m_gl_context.reset();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue