X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture2d.cpp;h=6e7d97202f341cc12e2a76d9e94b92f840c3ff94;hb=7db40551e9197142b0b6cb7fd883b325684bb8c2;hp=0f06790c06056f419f6f50766db8a4eb975793f3;hpb=2e7f0e8b226fdeea3306e2e0eef22a8f200ae16b;p=libs%2Fgl.git diff --git a/source/core/texture2d.cpp b/source/core/texture2d.cpp index 0f06790c..6e7d9720 100644 --- a/source/core/texture2d.cpp +++ b/source/core/texture2d.cpp @@ -230,6 +230,12 @@ 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()); }