projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7db305
)
glu/sgi: Initialize member variables in class Varray.
author
Vinson Lee
<vlee@vmware.com>
Wed, 30 Dec 2009 01:46:42 +0000
(17:46 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Wed, 30 Dec 2009 01:46:42 +0000
(17:46 -0800)
src/glu/sgi/libnurbs/internals/varray.cc
patch
|
blob
|
history
diff --git
a/src/glu/sgi/libnurbs/internals/varray.cc
b/src/glu/sgi/libnurbs/internals/varray.cc
index 31cc73a9d086a4240c5af2a2263aaa02383897e8..1cb235443ad3de89634982216d4dc678c21ff915 100644
(file)
--- a/
src/glu/sgi/libnurbs/internals/varray.cc
+++ b/
src/glu/sgi/libnurbs/internals/varray.cc
@@
-53,8
+53,16
@@
inline long sgn( REAL x )
Varray::Varray( void )
{
+ int i;
+
varray = 0;
size = 0;
+ numquads = 0;
+
+ for (i = 0; i < 1000; i++) {
+ vval[i] = 0;
+ voffset[i] = 0;
+ }
}
Varray::~Varray( void )