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)