Assume that malloc works.

This commit is contained in:
Camilla Berglund
2013-04-17 15:14:42 +02:00
parent 94853a3a05
commit 1fe21b22a3
4 changed files with 1 additions and 37 deletions
-6
View File
@@ -193,12 +193,6 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
return GL_FALSE;
window = (_GLFWwindow*) calloc(1, sizeof(_GLFWwindow));
if (!window)
{
_glfwInputError(GLFW_OUT_OF_MEMORY, NULL);
return NULL;
}
window->next = _glfw.windowListHead;
_glfw.windowListHead = window;