]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture3d.cpp
Create a class for issuing drawing commands
[libs/gl.git] / source / core / texture3d.cpp
index 3c675dbb705847527586b452f414bdc4b49c1fb1..768af91233aa6158c7d336d98a6386e3fa634f5c 100644 (file)
@@ -5,9 +5,7 @@
 #include <msp/gl/extensions/ext_texture3d.h>
 #include <msp/gl/extensions/ext_texture_array.h>
 #include <msp/graphics/image.h>
-#include "bindable.h"
 #include "error.h"
-#include "pixelstore.h"
 #include "texture3d.h"
 
 using namespace std;
@@ -190,9 +188,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());
 }