Fixes elements transitioning out of passthrough mode using GL resources that hadn'e been allocated yet.