Fix some warnings
Now caching the currently bound vertex buffer and index buffer