mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Merge pull request #948 from comex/vao-fix
Don't switch to a vertex array object of 0.
This commit is contained in:
commit
e7f03dd066
@ -1734,7 +1734,8 @@ void Renderer::RestoreAPIState()
|
||||
|
||||
VertexManager *vm = (OGL::VertexManager*)g_vertex_manager;
|
||||
glBindBuffer(GL_ARRAY_BUFFER, vm->m_vertex_buffers);
|
||||
glBindVertexArray(vm->m_last_vao);
|
||||
if (vm->m_last_vao)
|
||||
glBindVertexArray(vm->m_last_vao);
|
||||
|
||||
TextureCache::SetStage();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user