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