PixelFormat fmt = pixelformat_from_graphics(img.get_format());
if(width==0)
{
- unsigned l = (is_mipmapped(min_filter) ? 0 : 1);
+ unsigned l = (is_mipmapped(min_filter) ? mipmap_levels ? mipmap_levels : 0 : 1);
storage(storage_pixelformat_from_graphics(img.get_format(), srgb), w, l);
}
else if(w!=width)
void Texture1D::Loader::storage(PixelFormat fmt, unsigned w)
{
- if(srgb)
- fmt = get_srgb_pixelformat(fmt);
obj.storage(fmt, w);
}