move glBindBuffer and glBindVertexArray out of VertexManager

Signed-off-by: Ryan Houdek <[email protected]>
This commit is contained in:
degasus authored and Ryan Houdek committed 2012-12-13 15:28:52 -06:00
1 parent 09274e2483
commit 79a7ce4827
6 files changed
+62 -12

No files matched your search

@@ -357,11 +357,17 @@ void TextureCache::TCacheEntry::FromRenderTarget(u32 dstAddr, unsigned int dstFo
glBindBuffer(GL_ARRAY_BUFFER, vbo_it->second.vbo);
glBufferData(GL_ARRAY_BUFFER, 4*4*sizeof(GLfloat), vertices, GL_STREAM_DRAW);
// TODO: this after merging with graphic_update
glBindBuffer(GL_ARRAY_BUFFER, 0);
vbo_it->second.targetSource = targetSource;
}
glBindVertexArray(vbo_it->second.vao);
glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
// TODO: this after merging with graphic_update
glBindVertexArray(0);
GL_REPORT_ERRORD();