Mesa (master): glu/sgi: Initialize members of class Curve.
Vinson Lee
vlee at kemper.freedesktop.org
Mon Feb 15 06:05:55 UTC 2010
Module: Mesa
Branch: master
Commit: 53d448657bd300ab68b2869b2fba76a627699baf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=53d448657bd300ab68b2869b2fba76a627699baf
Author: Vinson Lee <vlee at vmware.com>
Date: Sun Feb 14 22:04:59 2010 -0800
glu/sgi: Initialize members of class Curve.
---
src/glu/sgi/libnurbs/internals/curve.cc | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/glu/sgi/libnurbs/internals/curve.cc b/src/glu/sgi/libnurbs/internals/curve.cc
index 33e2752..27e9e3c 100644
--- a/src/glu/sgi/libnurbs/internals/curve.cc
+++ b/src/glu/sgi/libnurbs/internals/curve.cc
@@ -85,6 +85,14 @@ Curve::Curve( Quilt_ptr geo, REAL pta, REAL ptb, Curve *c )
if( range[1] != ptb ) {
Curve lower( *this, ptb, 0 );
}
+
+ for( int i = 0; i < MAXORDER * MAXCOORDS; i++ ) {
+ cpts[i] = 0;
+ spts[i] = 0;
+ }
+
+ stepsize = 0;
+ minstepsize = 0;
}
/*--------------------------------------------------------------------------
More information about the mesa-commit
mailing list