X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture3d.cpp;h=b8e728cfa7ad3a9c64e13ee972996140c5eb864e;hb=b09f265880a3a932441091b0f3822b06c112c595;hp=03a64f1cf83abdf8b4de758f8f1c2a44075b74a8;hpb=ada4b7614137221b64a00f31fde1498064e9fb19;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()); }