X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexture2darray.cpp;h=19066c726bdb16fda9bb6af27cd0904324901199;hp=1928d4e3503c6f68f2446125ffe4b423c96ac5fc;hb=a92362ad19b65f66b98e0dc4d034da5e4eb5cf36;hpb=94969468a611b0d968021479b60e3f039e348c85 diff --git a/source/core/texture2darray.cpp b/source/core/texture2darray.cpp index 1928d4e3..19066c72 100644 --- a/source/core/texture2darray.cpp +++ b/source/core/texture2darray.cpp @@ -1,7 +1,6 @@ #include #include #include "error.h" -#include "pixelstore.h" #include "texture2darray.h" using namespace std; @@ -44,9 +43,6 @@ void Texture2DArray::layer_image(unsigned level, unsigned z, const Graphics::Ima 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()); }