]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture2d.cpp
Use set_manager instead of passing the manager to the constructor
[libs/gl.git] / source / core / texture2d.cpp
index 04ad6ed8d25fe5f61ef7e7893a33d238fcf31df5..01612d7325a8bf21c875e6e5a7de4f3de461657d 100644 (file)
@@ -6,8 +6,7 @@ using namespace std;
 namespace Msp {
 namespace GL {
 
-Texture2D::Texture2D(ResourceManager *m):
-       Texture2DBackend(m),
+Texture2D::Texture2D():
        width(0),
        height(0)
 { }
@@ -113,11 +112,7 @@ void Texture2D::Loader::init()
 void Texture2D::Loader::raw_data(const string &data)
 {
        if(obj.manager)
-       {
                obj.set_manager(0);
-               if(!obj.id)
-                       obj.generate_id();
-       }
        obj.image(0, data.data());
 }