Check length on glVersionStr
This commit is contained in:
parent
4677d9f7ea
commit
4b234bd161
|
@ -95,7 +95,7 @@ int VideoSettingsDialog::getsupportedRenderers()
|
|||
{
|
||||
const char* glVersionStr = reinterpret_cast<const char*>(glGetString(GL_VERSION));
|
||||
|
||||
if (glVersionStr)
|
||||
if (glVersionStr && strlen(glVersionStr) >= 3)
|
||||
{
|
||||
int gl_version = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue