Skip to content

Instantly share code, notes, and snippets.

@attilaz
Created February 11, 2015 15:14
Show Gist options
  • Save attilaz/78bfe8fa093dd128ad9d to your computer and use it in GitHub Desktop.
Save attilaz/78bfe8fa093dd128ad9d to your computer and use it in GitHub Desktop.
renderergl_hack.cpp
void ProgramGL::bindAttributes(const VertexDecl& _vertexDecl, uint32_t _baseVertex) const
{
for (uint32_t ii = 0; ii < 15; ++ii)
GL_CHECK(glDisableVertexAttribArray(ii) );
for (uint32_t ii = 0; Attrib::Count != m_used[ii]; ++ii)
{
Attrib::Enum attr = Attrib::Enum(m_used[ii]);
GLint loc = m_attributes[attr];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment