Failing to do so may leave ClipPlanes bound to ClipUnits, leading to
undesirable behaviour later on.
{
if(legacy)
static Require _req(MSP_legacy_features);
{
if(legacy)
static Require _req(MSP_legacy_features);
+
+ if(legacy!=bound_with_legacy)
+ unbind();
const Clipping *old = current();
const Clipping *old = current();
- if(!set_current(this) && !(legacy && !bound_with_legacy))
return;
bound_with_legacy = legacy;
return;
bound_with_legacy = legacy;