X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexture3d.cpp;h=ab8bca7cba1c8cfd4f5598b73c8dfa759d96488c;hp=3c675dbb705847527586b452f414bdc4b49c1fb1;hb=a92362ad19b65f66b98e0dc4d034da5e4eb5cf36;hpb=94969468a611b0d968021479b60e3f039e348c85 diff --git a/source/core/texture3d.cpp b/source/core/texture3d.cpp index 3c675dbb..ab8bca7c 100644 --- a/source/core/texture3d.cpp +++ b/source/core/texture3d.cpp @@ -7,7 +7,6 @@ #include #include "bindable.h" #include "error.h" -#include "pixelstore.h" #include "texture3d.h" using namespace std; @@ -190,9 +189,6 @@ void Texture3D::image(const Graphics::Image &img, unsigned lv) PixelFormat fmt = pixelformat_from_image(img); storage(make_pixelformat(get_components(fmt), get_component_type(fmt), use_srgb_format), w, h, d, lv); - PixelStore pstore = PixelStore::from_image(img); - BindRestore _bind_ps(pstore); - image(0, img.get_pixels()); }