]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/mesh.cpp
Use set_manager instead of passing the manager to the constructor
[libs/gl.git] / source / core / mesh.cpp
index 981a59e8002c46585f498887da1c32f00429b7ce..1e811b5b2b135725db55ebb54f7bd2e9909afb5b 100644 (file)
@@ -9,19 +9,16 @@ using namespace std;
 namespace Msp {
 namespace GL {
 
-Mesh::Mesh(ResourceManager *rm):
+Mesh::Mesh():
        vbuf(0),
        ibuf(0),
        dirty(0),
        disallow_rendering(false),
        face_winding(NON_MANIFOLD)
-{
-       if(rm)
-               set_manager(rm);
-}
+{ }
 
-Mesh::Mesh(const VertexFormat &f, ResourceManager *rm):
-       Mesh(rm)
+Mesh::Mesh(const VertexFormat &f):
+       Mesh()
 {
        storage(f);
 }