I need to bind a VAO , and then determine what VBO it is referencing.
I am trying to use transform feedback , so I need to get the buffer size to allocate storage for the transform buffer.
I have bound the VAO , but calls to:
glGetBufferParameteriv( GL_ARRAY_BUFFER , GL_BUFFER_SIZE , &nBufferSize );
cause:
GL_INVALID_OPERATION in glGetBufferParameteriv(no buffer bound)