]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture.cpp
Use set_manager instead of passing the manager to the constructor
[libs/gl.git] / source / core / texture.cpp
index be825e7ff231f118356897dcc6036365c178be32..568479a6d7fd9d187b3a9805af63591283bc9239 100644 (file)
@@ -8,17 +8,14 @@ using namespace std;
 namespace Msp {
 namespace GL {
 
-Texture::Texture(unsigned t, ResourceManager *m):
+Texture::Texture(unsigned t):
        TextureBackend(t),
        format(NO_PIXELFORMAT),
        storage_fmt(format),
        swizzle(NO_SWIZZLE),
        use_srgb_format(false),
        auto_gen_mipmap(false)
-{
-       if(m)
-               set_manager(m);
-}
+{ }
 
 void Texture::set_format(PixelFormat fmt)
 {