Created
April 9, 2013 04:10
-
-
Save jra101/5342884 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool TestVertexArrayObjects() | |
{ | |
GLuint va; | |
glGenVertexArrays(1, &va); | |
glBindVertexArray(va); | |
glDeleteVertexArrays(1, &va); | |
GLubyte input[4] = { 219, 102, 88, 7 }; | |
for (int i = 0; i < 2; i++) { | |
GLuint b; | |
glGenBuffers(1, &b); | |
glNamedBufferDataEXT(b, sizeof(input), input, GL_STATIC_DRAW); | |
glDeleteBuffers(1, &b); | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment