mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 18:35:45 -04:00
OpenGLHostDisplay: Fix crash when context creation fails
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user