Browse Source

build in stdfloat_double

David Rose 14 years ago
parent
commit
483a02735e

+ 1 - 1
panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx

@@ -3124,7 +3124,7 @@ bind_clip_plane(const NodePath &plane, int plane_id) {
   LMatrix4 rel_mat = plane_mat * LMatrix4::convert_mat(CS_yup_left, CS_default);
   LMatrix4 rel_mat = plane_mat * LMatrix4::convert_mat(CS_yup_left, CS_default);
   const PlaneNode *plane_node;
   const PlaneNode *plane_node;
   DCAST_INTO_V(plane_node, plane.node());
   DCAST_INTO_V(plane_node, plane.node());
-  LPlane world_plane = plane_node->get_plane() * rel_mat;
+  LPlanef world_plane = LCAST(float, plane_node->get_plane() * rel_mat);
 
 
   HRESULT hr = _d3d_device->SetClipPlane(plane_id, world_plane.get_data());
   HRESULT hr = _d3d_device->SetClipPlane(plane_id, world_plane.get_data());
   if (FAILED(hr)) {
   if (FAILED(hr)) {

+ 1 - 1
panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx

@@ -4083,7 +4083,7 @@ bind_clip_plane(const NodePath &plane, int plane_id) {
   LMatrix4 rel_mat = plane_mat * LMatrix4::convert_mat(CS_yup_left, CS_default);
   LMatrix4 rel_mat = plane_mat * LMatrix4::convert_mat(CS_yup_left, CS_default);
   const PlaneNode *plane_node;
   const PlaneNode *plane_node;
   DCAST_INTO_V(plane_node, plane.node());
   DCAST_INTO_V(plane_node, plane.node());
-  LPlane world_plane = plane_node->get_plane() * rel_mat;
+  LPlanef world_plane = LCAST(float, plane_node->get_plane() * rel_mat);
 
 
   HRESULT hr = _d3d_device->SetClipPlane(plane_id, world_plane.get_data());
   HRESULT hr = _d3d_device->SetClipPlane(plane_id, world_plane.get_data());
   if (FAILED(hr)) {
   if (FAILED(hr)) {