#include <msp/datafile/collection.h>
#include <msp/gl/extensions/ext_texture_array.h>
#include "error.h"
-#include "pixelstore.h"
#include "texture2darray.h"
using namespace std;
if(get_components(fmt)!=get_components(format) || get_component_type(fmt)!=get_component_type(format))
throw incompatible_data("Texture2DArray::layer_image");
- PixelStore pstore = PixelStore::from_image(img);
- BindRestore _bind_ps(pstore);
-
layer_image(level, z, img.get_pixels());
}