From 96b048519e3becf5bf1eb103dac6b6b62381daeb Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 4 May 2013 03:02:06 +0000 Subject: [PATCH] stdfloat_double issue --- panda/src/distort/projectionScreen.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/panda/src/distort/projectionScreen.cxx b/panda/src/distort/projectionScreen.cxx index 26d0e2deb4..e06707c402 100644 --- a/panda/src/distort/projectionScreen.cxx +++ b/panda/src/distort/projectionScreen.cxx @@ -593,13 +593,13 @@ recompute_geom(Geom *geom, const LMatrix4 &rel_mat) { LPoint3 uvw = film * to_uv; if (good && _has_undist_lut) { - LPoint3 p; + LPoint3f p; if (!_undist_lut.calc_bilinear_point(p, uvw[0], 1.0 - uvw[1])) { // Point is missing. uvw.set(0, 0, 0); good = false; } else { - uvw = p; + uvw = LCAST(PN_stdfloat, p); uvw[1] = 1.0 - uvw[1]; } } @@ -763,13 +763,13 @@ make_mesh_geom(const Geom *geom, Lens *lens, LMatrix4 &rel_mat) { // Rescale these to [0, 1]. LPoint3 uvw = film * lens_to_uv; - LPoint3 p; + LPoint3f p; if (!_undist_lut.calc_bilinear_point(p, uvw[0], 1.0 - uvw[1])) { // Point is missing. uvw.set(0, 0, 0); good = false; } else { - uvw = p; + uvw = LCAST(PN_stdfloat, p); uvw[1] = 1.0 - uvw[1]; }