From 397bc9e3614fb33c11e99cd9e68a2d613af2b34b Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 17 May 2024 18:54:43 +0200 Subject: move glUseProgram out of draw loop --- main.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 00f5723..705c35f 100644 --- a/main.c +++ b/main.c @@ -79,8 +79,6 @@ int main(int argc, char** argv) { glfwPollEvents(); update_uniform(); - - glUseProgram(shader); glDrawArrays(GL_TRIANGLES, 0, 3); glfwSwapBuffers(window); -- cgit v1.2.3