]> git.tdb.fi Git - libs/gl.git/blobdiff - source/mesh.cpp
Align batches at the index size
[libs/gl.git] / source / mesh.cpp
index 44568697f4f6dfd46aca884b9a6ebb8cffc05db3..d0e71489f1f48a22c6de0d1b686648c452024d98 100644 (file)
@@ -40,6 +40,7 @@ void Mesh::init(ResourceManager *rm)
 
 Mesh::~Mesh()
 {
+       set_manager(0);
        delete vbuf;
        delete ibuf;
        if(vao_id)
@@ -200,7 +201,7 @@ void Mesh::unbind()
                glBindVertexArray(0);
 }
 
-Resource::AsyncLoader *Mesh::load(IO::Seekable &io)
+Resource::AsyncLoader *Mesh::load(IO::Seekable &io, const Resources *)
 {
        return new AsyncLoader(*this, io);
 }