Revision: 52760
http://brlcad.svn.sourceforge.net/brlcad/?rev=52760&view=rev
Author: brlcad
Date: 2012-10-04 12:18:56 +0000 (Thu, 04 Oct 2012)
Log Message:
-----------
need to do the same for GLdouble data, convert from fastf_t
Modified Paths:
--------------
brlcad/trunk/src/libdm/dm_util.c
Modified: brlcad/trunk/src/libdm/dm_util.c
===================================================================
--- brlcad/trunk/src/libdm/dm_util.c 2012-10-04 12:18:17 UTC (rev 52759)
+++ brlcad/trunk/src/libdm/dm_util.c 2012-10-04 12:18:56 UTC (rev 52760)
@@ -31,6 +31,7 @@
drawLine3D(struct dm *dmp, point_t pt1, point_t pt2, char *log_bu, float
*wireColor)
{
static float black[4] = {0.0, 0.0, 0.0, 0.0};
+ GLdouble pt[3];
if (dmp->dm_debugLevel)
bu_log(log_bu);
@@ -63,8 +64,10 @@
}
glBegin(GL_LINES);
- glVertex3dv(pt1);
- glVertex3dv(pt2);
+ VMOVE(pt, pt1); /* fastf_t to GLdouble */
+ glVertex3dv(pt);
+ VMOVE(pt, pt2); /* fastf_t to GLdouble */
+ glVertex3dv(pt);
glEnd();
return TCL_OK;
@@ -114,8 +117,11 @@
else
glBegin(GL_LINES);
- for (i = 0; i < npoints; ++i)
- glVertex3dv(points[i]);
+ for (i = 0; i < npoints; ++i) {
+ GLdouble pt[3];
+ VMOVE(pt, points[i]); /* fastf_t to GLdouble */
+ glVertex3dv(pt);
+ }
glEnd();
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits