mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-22 09:09:18 +01:00
OpenGL: Fix a crash when GL_VERSION is null (#1187)
This commit is contained in:
parent
efbbb817fe
commit
5be98da0ac
@ -386,7 +386,7 @@ void OpenGLRenderer::GetVendorInformation()
|
|||||||
cemuLog_log(LogType::Force, "GL_RENDERER: {}", glRendererString ? glRendererString : "unknown");
|
cemuLog_log(LogType::Force, "GL_RENDERER: {}", glRendererString ? glRendererString : "unknown");
|
||||||
cemuLog_log(LogType::Force, "GL_VERSION: {}", glVersionString ? glVersionString : "unknown");
|
cemuLog_log(LogType::Force, "GL_VERSION: {}", glVersionString ? glVersionString : "unknown");
|
||||||
|
|
||||||
if(boost::icontains(glVersionString, "Mesa"))
|
if(glVersionString && boost::icontains(glVersionString, "Mesa"))
|
||||||
{
|
{
|
||||||
m_vendor = GfxVendor::Mesa;
|
m_vendor = GfxVendor::Mesa;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user