X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmisc.h;h=b8540bd61e7ec1fef504ec9c6c94dbdb6b2c164b;hb=5172d32d67595ea0b70184fadcfcb8e023cccbc8;hp=11cb3a60fdc24f9d94e713f89f17cdd9bd351ca6;hpb=98c810b6d2256aa65986bbde12c38917678121bb;p=libs%2Fgl.git diff --git a/source/misc.h b/source/misc.h index 11cb3a60..b8540bd6 100644 --- a/source/misc.h +++ b/source/misc.h @@ -23,31 +23,6 @@ void get(GLenum, int &); void get(GLenum, int *); int get_i(GLenum); -class Bind -{ -private: - struct Base - { - virtual ~Base() { } - }; - - template - struct Binder: Base - { - const T &obj; - - Binder(const T &o): obj(o) { obj.bind(); } - ~Binder() { obj.unbind(); } - }; - - Base *binder; - -public: - template - Bind(const T &o): binder(new Binder(o)) { } - ~Bind() { delete binder; } -}; - } // namespace GL } // namespace Msp