Added lazy state updating for vertex array object binding/unbinding
This commit is contained in:
@@ -820,9 +820,11 @@ void Geometry::compileGLObjects(RenderInfo& renderInfo) const
|
||||
|
||||
State::SetCurrentVertexArrayStateProxy setVASProxy(state, vas);
|
||||
|
||||
vas->bindVertexArrayObject();
|
||||
state.bindVertexArrayObject(vas);
|
||||
|
||||
drawVertexArraysImplementation(renderInfo);
|
||||
|
||||
state.unbindVertexArrayObject();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user