]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texturecube.cpp
Remove the PixelStore class
[libs/gl.git] / source / core / texturecube.cpp
index 4984985c807489b28d6f5737c2f2ba03286488d3..5c7f61029c3c736eb3245e99b559b29c7e79f2aa 100644 (file)
@@ -7,7 +7,6 @@
 #include <msp/strings/format.h>
 #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<const char *>(img.get_pixels());
        unsigned face_size = img.get_stride()*size;
        for(unsigned i=0; i<6; ++i)