X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbindable.h;h=b2634ea92bd4b1b43bb1f88b502af230f1e3c4bd;hp=20b6482a9ec92009e555e9cdbe34519e49699787;hb=4b4d2a48048268d2ad48bafbce8647af8088573f;hpb=0ef8e620a008e92069b0dd9ae4e972bc69430fc7 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()