X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture1d.cpp;h=e5a496a455095093c89502d15c3727dd7306ecec;hp=44e49f51142fde02d41fa4da16b5119cb129d840;hb=6f8c0c6c088be92804cb413c0234bfb817ef2d8d;hpb=cb836adcf11f690188df9b7bc59f3fe87b67aaa7 diff --git a/source/texture1d.cpp b/source/texture1d.cpp index 44e49f51..e5a496a4 100644 --- a/source/texture1d.cpp +++ b/source/texture1d.cpp @@ -61,9 +61,9 @@ void Texture1D::image(unsigned level, PixelFormat fmt, DataType type, const void BindRestore _bind(this); if(ARB_texture_storage) - sub_image(level, 0, w, fmt, type, data); - else - glTexImage1D(target, level, ifmt, w, 0, fmt, type, data); + return sub_image(level, 0, w, fmt, type, data); + + glTexImage1D(target, level, ifmt, w, 0, fmt, type, data); allocated |= 1<