mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
build in stdfloat_double
This commit is contained in:
parent
65e9303415
commit
483a02735e
@ -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);
|
||||
const PlaneNode *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());
|
||||
if (FAILED(hr)) {
|
||||
|
@ -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);
|
||||
const PlaneNode *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());
|
||||
if (FAILED(hr)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user