Make remaining tests set viewport in render loop

This commit is contained in:
Camilla Löwy
2018-02-04 14:38:25 +01:00
parent c29e4455bb
commit ff6a8891d4
5 changed files with 4 additions and 23 deletions

View File

@@ -38,11 +38,6 @@ static void error_callback(int error, const char* description)
fprintf(stderr, "Error: %s\n", description);
}
static void framebuffer_size_callback(GLFWwindow* window, int width, int height)
{
glViewport(0, 0, width, height);
}
int main(void)
{
GLFWwindow* window;
@@ -63,8 +58,6 @@ int main(void)
gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
glfwSwapInterval(1);
glfwSetFramebufferSizeCallback(window, framebuffer_size_callback);
while (!glfwWindowShouldClose(window))
{
glClear(GL_COLOR_BUFFER_BIT);