mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Added bug fix from 2.7.6.
This commit is contained in:
@@ -298,6 +298,12 @@ static _GLFWfbconfig* getFBConfigs(_GLFWwindow* window, unsigned int* found)
|
||||
(*found)++;
|
||||
}
|
||||
|
||||
if (*found == 0)
|
||||
{
|
||||
free(fbconfigs);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return fbconfigs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user