Skip to content

Instantly share code, notes, and snippets.

@djg
Created May 21, 2015 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djg/572eb0acc7c7c9667493 to your computer and use it in GitHub Desktop.
Save djg/572eb0acc7c7c9667493 to your computer and use it in GitHub Desktop.
glBindBufferRange
GLuint buf;
glGenBuffers(1, &buf);
// glBindBuffer(GL_UNIFORM, buf); <-- OSX needs this or ...
glBindBufferRange(GL_UNIFORM_BUFFER, 0, buf, 0, 4); // ... this returns GL_INVALID_VALUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment