Skip to content

Commit

Permalink
Create VAO to fix working with OpenGL 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
httpdigest committed Aug 4, 2018
1 parent 5a6b70c commit 7fc7dd4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ public void invoke(long window, int key, int scancode, int action, int mods) {
glClearColor(1.0f, 1.0f, 1.0f, 1.0f);

// Create all needed GL resources
glBindVertexArray(glGenVertexArrays());
createProgram();
createUbo();
// and set some GL state
Expand Down

0 comments on commit 7fc7dd4

Please sign in to comment.