Recently, I started to learn OpenGL. I have written a Renderer class which takes a VertexArray object, a Shader and a IBuffer object .When I pass VertexArray by const reference