context reinit support
This commit is contained in:
@@ -64,6 +64,16 @@ void Mesh::init(QOpenGLExtraFunctions * f) {
|
||||
}
|
||||
|
||||
|
||||
void Mesh::reinit() {
|
||||
buffer_geom.reinit();
|
||||
buffer_ind .reinit();
|
||||
QMapIterator<int, VertexObject * > it(vao_map);
|
||||
while (it.hasNext())
|
||||
it.next().value()->reinit();
|
||||
changed = true;
|
||||
}
|
||||
|
||||
|
||||
void Mesh::destroy(QOpenGLExtraFunctions * f) {
|
||||
buffer_geom.destroy(f);
|
||||
buffer_ind .destroy(f);
|
||||
|
||||
Reference in New Issue
Block a user