X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture2d.cpp;h=973afebfcf277b75d217e2d0262e83846e06e41a;hp=7a9701f5e616f448465c1335f695b871d3d34d04;hb=f33a98b1a044c8ac7b12778cbca6c4a124875e4a;hpb=a443cba337d8d69e23e64e19334d222e750c28b1 diff --git a/source/texture2d.cpp b/source/texture2d.cpp index 7a9701f5..973afebf 100644 --- a/source/texture2d.cpp +++ b/source/texture2d.cpp @@ -46,7 +46,7 @@ void Texture2D::image(unsigned level, PixelFormat fmt, DataType type, const void unsigned h = height; get_level_size(level, w, h); - Bind _bind(this, true); + BindRestore _bind(this); glTexImage2D(target, level, ifmt, w, h, 0, fmt, type, data); allocated |= 1<