X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture.cpp;h=47b6ba37abb300f8fae19a83be1ace593001362f;hb=c6c4fc39952e372eba1f44f2bc504428140f3d0e;hp=d71f38c2f1f2efba27edf95c57925c0a11946f54;hpb=d16a4ab73f87d177296b59f04880ef7eba593df7;p=libs%2Fgl.git diff --git a/source/texture.cpp b/source/texture.cpp index d71f38c2..47b6ba37 100644 --- a/source/texture.cpp +++ b/source/texture.cpp @@ -91,6 +91,12 @@ void Texture::unbind() TexUnit::current().set_texture(0); } +void Texture::unbind_from(unsigned i) +{ + TexUnit::activate(i); + unbind(); +} + Texture::Texture(): target(0) {