From 2050f1b7d89b50bf11e4e8d1c020d13c551811ee Mon Sep 17 00:00:00 2001 From: Felipe Ferreira da Silva Date: Sun, 9 Apr 2017 13:30:34 -0300 Subject: [PATCH] Revert example ```simple.c``` --- examples/simple.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/examples/simple.c b/examples/simple.c index 6c78acf45..7752a3655 100644 --- a/examples/simple.c +++ b/examples/simple.c @@ -79,7 +79,6 @@ int main(void) GLFWwindow* window; GLuint vertex_buffer, vertex_shader, fragment_shader, program; GLint mvp_location, vpos_location, vcol_location; - double start; glfwSetErrorCallback(error_callback); @@ -132,18 +131,12 @@ int main(void) glVertexAttribPointer(vcol_location, 3, GL_FLOAT, GL_FALSE, sizeof(vertices[0]), (void*) (sizeof(float) * 2)); - start = glfwGetTime(); while (!glfwWindowShouldClose(window)) { float ratio; int width, height; mat4x4 m, p, mvp; - if (glfwGetTime() - start > 10.0) { - glfwRequestWindowAttention(window); - start = glfwGetTime(); - } - glfwGetFramebufferSize(window, &width, &height); ratio = width / (float) height;