Check length on glVersionStr

This commit is contained in:
Gess1t 2024-10-30 23:18:30 +01:00
parent 4677d9f7ea
commit 4b234bd161
1 changed files with 1 additions and 1 deletions

View File

@ -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;