X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture2d.cpp;h=9b1c16ea120dbe6fe7d88c96f57dcfbfd386e79e;hb=df9119a9bf2d348a513c515ed92953353da97b54;hp=41f4ab11280259f1fd68f621c8f82ee289f9dbed;hpb=4365124bd39bd6edbda6eaef64ec72a1a10565f8;p=libs%2Fgl.git diff --git a/source/core/texture2d.cpp b/source/core/texture2d.cpp index 41f4ab11..9b1c16ea 100644 --- a/source/core/texture2d.cpp +++ b/source/core/texture2d.cpp @@ -99,18 +99,10 @@ Texture2D::Loader::Loader(Texture2D &t, Collection &c): void Texture2D::Loader::init() { - add("raw_data", &Loader::raw_data); add("storage", &Loader::storage); add("storage", &Loader::storage_levels); } -void Texture2D::Loader::raw_data(const string &data) -{ - if(obj.manager) - obj.set_manager(0); - obj.image(0, data.data()); -} - void Texture2D::Loader::storage(PixelFormat fmt, unsigned w, unsigned h) { obj.storage(fmt, w, h);