]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture2d.cpp
Remove the PixelStore class
[libs/gl.git] / source / core / texture2d.cpp
index 09831cb3385abcc5eeaf5f9e5404e33a6a427f3f..528c4a58d216416ad2ca9816852bd0a7001d2a9e 100644 (file)
@@ -5,7 +5,6 @@
 #include "bindable.h"
 #include "buffer.h"
 #include "error.h"
-#include "pixelstore.h"
 #include "resources.h"
 #include "texture2d.h"
 
@@ -203,9 +202,6 @@ void Texture2D::image(const Graphics::Image &img, unsigned lv, bool from_buffer)
        PixelFormat fmt = pixelformat_from_image(img);
        storage(make_pixelformat(get_components(fmt), get_component_type(fmt), use_srgb_format), w, h, lv);
 
-       PixelStore pstore = PixelStore::from_image(img);
-       BindRestore _bind_ps(pstore);
-
        image(0, from_buffer ? 0 : img.get_pixels());
 }