diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-08-30 19:02:45 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-08-30 19:02:45 +0000 |
commit | 3fa02312b4e2e86a743da38fac70daef10225c56 (patch) | |
tree | 1ac3e42665933d1225be04cd63e57a2eba13df53 | |
parent | 0a12ccb53fb14334ed2aafeeeb69611d716f4ce2 (diff) | |
download | glu-3fa02312b4e2e86a743da38fac70daef10225c56.tar.gz |
init a local var to silence warning
-rw-r--r-- | src/libnurbs/nurbtess/sampleCompRight.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libnurbs/nurbtess/sampleCompRight.cc b/src/libnurbs/nurbtess/sampleCompRight.cc index 46252b5..e25b53c 100644 --- a/src/libnurbs/nurbtess/sampleCompRight.cc +++ b/src/libnurbs/nurbtess/sampleCompRight.cc @@ -31,10 +31,10 @@ ** published by SGI, but has not been independently verified as being ** compliant with the OpenGL(R) version 1.2.1 Specification. ** -** $Date: 2005/10/28 13:09:23 $ $Revision: 1.3 $ +** $Date: 2006/08/30 19:02:45 $ $Revision: 1.4 $ */ /* -** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/nurbtess/sampleCompRight.cc,v 1.3 2005/10/28 13:09:23 brianp Exp $ +** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/nurbtess/sampleCompRight.cc,v 1.4 2006/08/30 19:02:45 brianp Exp $ */ #include <stdlib.h> @@ -72,7 +72,7 @@ void sampleCompRight(Real* topVertex, Real* botVertex, */ Int midIndex1; Int midIndex2; - Int gridMidIndex1, gridMidIndex2 = 0; + Int gridMidIndex1 = 0, gridMidIndex2 = 0; //midIndex1: array[i] <= v, array[i+1] > v //midIndex2: array[i] >= v, array[i+1] < v midIndex1 = rightChain->findIndexBelowGen(rightGridChain->get_v_value(gridIndex1), |