mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 05:40:15 -06:00
Check length on glVersionStr
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user