X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexturecube.cpp;fp=source%2Ftexturecube.cpp;h=0613a39a8ebba335a56f42a9ec958c9a796ac45e;hp=bac60ffdd9612317ecfd3af6251ff78ef1aa3c93;hb=fb5ca4dbba257d3eb7fa15800d9663b774e41e7e;hpb=47f817343df1d06d91a4f7c4d5b47df40b24366c diff --git a/source/texturecube.cpp b/source/texturecube.cpp index bac60ffd..0613a39a 100644 --- a/source/texturecube.cpp +++ b/source/texturecube.cpp @@ -271,6 +271,7 @@ void TextureCube::Loader::init() add("image_data", &Loader::image_data); add("raw_data", &Loader::raw_data); add("storage", &Loader::storage); + add("storage", &Loader::storage_levels); } void TextureCube::Loader::external_image(TextureCubeFace face, const string &fn) @@ -301,6 +302,11 @@ void TextureCube::Loader::storage(PixelFormat fmt, unsigned s) obj.storage(fmt, s); } +void TextureCube::Loader::storage_levels(PixelFormat fmt, unsigned s, unsigned l) +{ + obj.storage(fmt, s, l); +} + void operator>>(const LexicalConverter &conv, TextureCubeFace &face) {