X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture3d.cpp;fp=source%2Ftexture3d.cpp;h=c8f59a094a0fed550a37a5721ae26329941a54ae;hb=fb5ca4dbba257d3eb7fa15800d9663b774e41e7e;hp=48b358c2edd2ad0e2a899138713b8bb5d82135c9;hpb=47f817343df1d06d91a4f7c4d5b47df40b24366c;p=libs%2Fgl.git diff --git a/source/texture3d.cpp b/source/texture3d.cpp index 48b358c2..c8f59a09 100644 --- a/source/texture3d.cpp +++ b/source/texture3d.cpp @@ -247,6 +247,7 @@ void Texture3D::Loader::init() { add("raw_data", &Loader::raw_data); add("storage", &Loader::storage); + add("storage", &Loader::storage_levels); } void Texture3D::Loader::raw_data(const string &data) @@ -259,5 +260,10 @@ void Texture3D::Loader::storage(PixelFormat fmt, unsigned w, unsigned h, unsigne obj.storage(fmt, w, h, d); } +void Texture3D::Loader::storage_levels(PixelFormat fmt, unsigned w, unsigned h, unsigned d, unsigned l) +{ + obj.storage(fmt, w, h, d, l); +} + } // namespace GL } // namespace Msp