X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture3d.cpp;h=b8e728cfa7ad3a9c64e13ee972996140c5eb864e;hb=8b3e51aeff0e22d29a34772c77b8647108f58677;hp=03a64f1cf83abdf8b4de758f8f1c2a44075b74a8;hpb=729a477b47e97aea41f3f0b5db551f02bf70d1ee;p=libs%2Fgl.git diff --git a/source/core/texture3d.cpp b/source/core/texture3d.cpp index 03a64f1c..b8e728cf 100644 --- a/source/core/texture3d.cpp +++ b/source/core/texture3d.cpp @@ -108,9 +108,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()); }