void Texture2D::Loader::raw_data(const string &data)
{
- obj.image(0, obj.ifmt, UNSIGNED_BYTE, data.data());
+ obj.image(0, get_base_pixelformat(obj.ifmt), UNSIGNED_BYTE, data.data());
}
void Texture2D::Loader::storage(PixelFormat fmt, unsigned w, unsigned h)
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)