X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture2d.cpp;h=23cb9477e122c69ddabdbf614dfafca05ed71801;hb=ac51b8c24d6e9e2c2e1dee7822f3957917722000;hp=4d6e32f5550cd6f48ee68c71d957278b7ffe355e;hpb=6f8c0c6c088be92804cb413c0234bfb817ef2d8d;p=libs%2Fgl.git diff --git a/source/texture2d.cpp b/source/texture2d.cpp index 4d6e32f5..23cb9477 100644 --- a/source/texture2d.cpp +++ b/source/texture2d.cpp @@ -89,10 +89,10 @@ void Texture2D::image(unsigned level, PixelFormat fmt, DataType type, const void unsigned h = height; get_level_size(level, w, h); - BindRestore _bind(this); if(ARB_texture_storage) return sub_image(level, 0, 0, w, h, fmt, type, data); + BindRestore _bind(this); glTexImage2D(target, level, ifmt, w, h, 0, fmt, type, data); allocated |= 1<