X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexturecube.cpp;h=d5453c182e128b13e201cb87d7b738e38caefd00;hp=7f8301187c35e07257037aec9967ad6b502e83a8;hb=89dc716abe7fa671e1da1c033d955cd72da73f33;hpb=aa987216b92584aafc0ecbc3d578606018078f91 diff --git a/source/texturecube.cpp b/source/texturecube.cpp index 7f830118..d5453c18 100644 --- a/source/texturecube.cpp +++ b/source/texturecube.cpp @@ -183,7 +183,7 @@ void TextureCube::Loader::image_data(TextureCubeFace face, const string &data) void TextureCube::Loader::raw_data(TextureCubeFace face, const string &data) { - obj.image(face, 0, obj.ifmt, UNSIGNED_BYTE, data.data()); + obj.image(face, 0, get_base_pixelformat(obj.ifmt), UNSIGNED_BYTE, data.data()); } void TextureCube::Loader::storage(PixelFormat fmt, unsigned s)