From: Mikko Rasa Date: Fri, 17 Oct 2014 18:40:28 +0000 (+0300) Subject: Don't bind the default object if nothing was bound before X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=20990f98dcc36ef6e791fda88d157cadf2af06c0;p=libs%2Fgl.git Don't bind the default object if nothing was bound before --- diff --git a/source/bindable.h b/source/bindable.h index 20b6482a..b2634ea9 100644 --- a/source/bindable.h +++ b/source/bindable.h @@ -56,7 +56,8 @@ public: static void unbind() { - default_object().bind(); + if(Bindable::cur_obj) + default_object().bind(); } static const T &default_object()