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;