diff src/gl-render.cc @ 11584:cda4aa780d58

Another round of initialising members in the constructor initialisation list
author Pascal Dupuis <Pascal.Dupuis@uclouvain.be>
date Thu, 20 Jan 2011 17:07:26 -0500
parents 8ac9687dbe9f
children 1473d0cf86d2
line wrap: on
line diff
--- a/src/gl-render.cc
+++ b/src/gl-render.cc
@@ -63,7 +63,10 @@
   class texture_rep
   {
   public:
-    texture_rep (void) : valid (false), count (1) { }
+    texture_rep (void) 
+      : id (), w (), h (), tw (), th (), tx (), ty (),
+        valid (false), count (1) 
+    { }
 
     texture_rep (GLuint id_arg, int w_arg, int h_arg, int tw_arg, int th_arg)
         : id (id_arg), w (w_arg), h (h_arg), tw (tw_arg), th (th_arg),
@@ -239,7 +242,7 @@
 
 public:
 
-  opengl_tesselator (void) : glu_tess (0) { init (); }
+  opengl_tesselator (void) : glu_tess (0), fill() { init (); }
 
   virtual ~opengl_tesselator (void)
     { if (glu_tess) gluDeleteTess (glu_tess); }
@@ -343,7 +346,9 @@
     // reference counter
     int count;
 
-    vertex_data_rep (void) : count (1) { }
+    vertex_data_rep (void) 
+      : coords (), color (), normal (), alpha (),
+        ambient (), diffuse (), specular (), specular_exp (),count (1) { }
 
     vertex_data_rep (const Matrix& c, const Matrix& col, const Matrix& n,
                      double a, float as, float ds, float ss, float se)