From 4a7a97236bbe6d1bab02529d86af1e2a40a9ab3c Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 30 Apr 2011 09:54:04 -0400 Subject: [PATCH] actually using the program we made is helpful --- template/test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/template/test.cc b/template/test.cc index a1e59d6..90d2c45 100644 --- a/template/test.cc +++ b/template/test.cc @@ -175,6 +175,7 @@ bool init(int width, int height) void display(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + glUseProgram(program); glBindBuffer(GL_ARRAY_BUFFER, data_vbo); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, index_vbo); glEnableVertexAttribArray(LOC_POSITION);