unsigned d = h/w;
h = w;
- PixelFormat fmt = pixelformat_from_image(img);
- storage(make_pixelformat(get_components(fmt), get_component_type(fmt), use_srgb_format), w, h, d, lv);
-
+ storage(pixelformat_from_image(img, use_srgb_format), w, h, d, lv);
image(0, img.get_pixels());
}