chore: move depth test setting to gfx init

This commit is contained in:
Cat Flynn 2023-08-06 13:09:21 +02:00
parent 1f217971fd
commit cf5418780b
1 changed files with 2 additions and 2 deletions

View File

@ -86,6 +86,8 @@ int initGraphics(GLFWwindow** window)
return -1;
}
glEnable(GL_DEPTH_TEST);
return 0;
}
@ -155,8 +157,6 @@ int main()
Icosphere sphere(0.5, 2);
Orbit orbit(30, glm::vec3(.5, .5, 0));
glEnable(GL_DEPTH_TEST);
// Main loop
while (!glfwWindowShouldClose(window))
{