From: Vinson Lee Date: Mon, 15 Feb 2010 06:04:59 +0000 (-0800) Subject: glu/sgi: Initialize members of class Curve. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53d448657bd300ab68b2869b2fba76a627699baf;p=mesa.git glu/sgi: Initialize members of class Curve. --- diff --git a/src/glu/sgi/libnurbs/internals/curve.cc b/src/glu/sgi/libnurbs/internals/curve.cc index 33e27526435..27e9e3cdc98 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; } /*--------------------------------------------------------------------------