mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -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));
|
const char* glVersionStr = reinterpret_cast<const char*>(glGetString(GL_VERSION));
|
||||||
|
|
||||||
if (glVersionStr)
|
if (glVersionStr && strlen(glVersionStr) >= 3)
|
||||||
{
|
{
|
||||||
int gl_version = 0;
|
int gl_version = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user