From d66635bc86403f453862b5efe4d8ce1e709b4a2a Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 27 Oct 2003 00:46:20 +0000 Subject: [PATCH] plane now inherits from LVecBase4 --- panda/src/glgsg/glGraphicsStateGuardian.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/panda/src/glgsg/glGraphicsStateGuardian.cxx b/panda/src/glgsg/glGraphicsStateGuardian.cxx index 84a9e91285..9ef03fbdcb 100644 --- a/panda/src/glgsg/glGraphicsStateGuardian.cxx +++ b/panda/src/glgsg/glGraphicsStateGuardian.cxx @@ -3642,8 +3642,7 @@ bind_clip_plane(PlaneNode *plane, int plane_id) { const LMatrix4f &plane_mat = plane_np.get_mat(_scene_setup->get_scene_root()); Planef xformed_plane = plane->get_plane() * plane_mat; - Planed double_plane(xformed_plane._a, xformed_plane._b, - xformed_plane._c, xformed_plane._d); + Planed double_plane(LCAST(double, xformed_plane)); glClipPlane(id, double_plane.get_data()); report_gl_errors();