1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-08 07:07:25 -04:00
This commit is contained in:
Camilla Berglund 2015-12-06 15:08:23 +01:00
parent 5668b64839
commit 72632a846b

View File

@ -266,11 +266,7 @@ GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count)
if (*count == size)
{
if (*count)
size *= 2;
else
size = 128;
size += 128;
result = (GLFWvidmode*) realloc(result, size * sizeof(GLFWvidmode));
}