My OpenGL renderer works fine when I do simple forward rendering, but when I try to render to a frame buffer it does not display the last Vertex Array that I tell it to draw. I've changed the order in which they are passed and it always draws all but the last one.
I'm hoping that it's just something silly, like calling something out of order or forgetting to switch a value.


Here's the render code:
void OpenGLRenderer::render(std::vector<RenderObject>& scene, const Camera& camera …