X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture1d.cpp;h=38dc8a8bde5644ef5841bd52d7ae5636a7e40bbf;hb=47f817343df1d06d91a4f7c4d5b47df40b24366c;hp=d09a9570306e077b771d31dce598757e2fc715fb;hpb=d6db27e633b1b8850fb093a8e5fad439ac3b0465;p=libs%2Fgl.git diff --git a/source/texture1d.cpp b/source/texture1d.cpp index d09a9570..38dc8a8b 100644 --- a/source/texture1d.cpp +++ b/source/texture1d.cpp @@ -110,10 +110,7 @@ void Texture1D::image(const Graphics::Image &img, unsigned lv, bool srgb) unsigned w = img.get_width(); PixelFormat fmt = pixelformat_from_graphics(img.get_format()); if(width==0) - { - unsigned l = (is_mipmapped(min_filter) ? lv : 1); - storage(storage_pixelformat_from_graphics(img.get_format(), srgb), w, l); - } + storage(storage_pixelformat_from_graphics(img.get_format(), srgb), w, lv); else if(w!=width) throw incompatible_data("Texture1D::image");