]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture3d.cpp
Always require EXT_texture3D and ARB_shadow for samplers
[libs/gl.git] / source / core / texture3d.cpp
index 03a64f1cf83abdf8b4de758f8f1c2a44075b74a8..c35d45741ed14aa71bca1c1b2420ab785476dc5d 100644 (file)
@@ -3,7 +3,6 @@
 #include <msp/gl/extensions/arb_texture_storage.h>
 #include <msp/gl/extensions/ext_texture3d.h>
 #include <msp/gl/extensions/ext_texture_array.h>
-#include <msp/graphics/image.h>
 #include "error.h"
 #include "texture3d.h"
 
@@ -108,9 +107,7 @@ void Texture3D::image(const Graphics::Image &img, unsigned lv)
        unsigned d = h/w;
        h = w;
 
-       PixelFormat fmt = pixelformat_from_image(img);
-       storage(make_pixelformat(get_components(fmt), get_component_type(fmt), use_srgb_format), w, h, d, lv);
-
+       storage(pixelformat_from_image(img, use_srgb_format), w, h, d, lv);
        image(0, img.get_pixels());
 }