#include <msp/gl/extensions/arb_texture_storage.h>
#include <msp/gl/extensions/ext_texture3d.h>
#include <msp/gl/extensions/ext_texture_array.h>
-#include <msp/graphics/image.h>
#include "error.h"
#include "texture3d.h"
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());
}