sub_image(level, x, y, z, wd, ht, dp, data);
}
sub_image(level, x, y, z, wd, ht, dp, data);
}
- storage(make_pixelformat(get_components(fmt), get_component_type(fmt), srgb), w, h, d, lv);
+ storage(make_pixelformat(get_components(fmt), get_component_type(fmt), use_srgb_format), w, h, d, lv);
else if(w!=width || h!=height || d!=depth)
throw incompatible_data("Texture3D::load_image");
PixelStore pstore = PixelStore::from_image(img);
BindRestore _bind_ps(pstore);
else if(w!=width || h!=height || d!=depth)
throw incompatible_data("Texture3D::load_image");
PixelStore pstore = PixelStore::from_image(img);
BindRestore _bind_ps(pstore);