X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexture2d.cpp;h=528c4a58d216416ad2ca9816852bd0a7001d2a9e;hp=09831cb3385abcc5eeaf5f9e5404e33a6a427f3f;hb=a92362ad19b65f66b98e0dc4d034da5e4eb5cf36;hpb=94969468a611b0d968021479b60e3f039e348c85 diff --git a/source/core/texture2d.cpp b/source/core/texture2d.cpp index 09831cb3..528c4a58 100644 --- a/source/core/texture2d.cpp +++ b/source/core/texture2d.cpp @@ -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()); }