fixed multicontext handling in video3d