X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexturecube.cpp;h=5c7f61029c3c736eb3245e99b559b29c7e79f2aa;hp=4984985c807489b28d6f5737c2f2ba03286488d3;hb=a92362ad19b65f66b98e0dc4d034da5e4eb5cf36;hpb=94969468a611b0d968021479b60e3f039e348c85 diff --git a/source/core/texturecube.cpp b/source/core/texturecube.cpp index 4984985c..5c7f6102 100644 --- a/source/core/texturecube.cpp +++ b/source/core/texturecube.cpp @@ -7,7 +7,6 @@ #include #include "bindable.h" #include "error.h" -#include "pixelstore.h" #include "texturecube.h" using namespace std; @@ -223,9 +222,6 @@ void TextureCube::image(TextureCubeFace face, const Graphics::Image &img) PixelFormat fmt = pixelformat_from_image(img); storage(make_pixelformat(get_components(fmt), get_component_type(fmt), use_srgb_format), w); - PixelStore pstore = PixelStore::from_image(img); - BindRestore _bind_ps(pstore); - image(face, 0, img.get_pixels()); } @@ -249,9 +245,6 @@ void TextureCube::image(const Graphics::Image &img, unsigned lv) else if(w!=size || h!=size) throw incompatible_data("TextureCube::image"); - PixelStore pstore = PixelStore::from_image(img); - BindRestore _bind_ps(pstore); - const char *pixels = reinterpret_cast(img.get_pixels()); unsigned face_size = img.get_stride()*size; for(unsigned i=0; i<6; ++i)