Cleanup
This commit is contained in:
parent
5668b64839
commit
72632a846b
@ -266,11 +266,7 @@ GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count)
|
|||||||
|
|
||||||
if (*count == size)
|
if (*count == size)
|
||||||
{
|
{
|
||||||
if (*count)
|
size += 128;
|
||||||
size *= 2;
|
|
||||||
else
|
|
||||||
size = 128;
|
|
||||||
|
|
||||||
result = (GLFWvidmode*) realloc(result, size * sizeof(GLFWvidmode));
|
result = (GLFWvidmode*) realloc(result, size * sizeof(GLFWvidmode));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user