diff src/gl-render.cc @ 12125:a21a3875ca83

implement a common class for reference counts
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 20 Jan 2011 11:10:27 +0100
parents f4689107dd8c
children 85f9a5b211fd
line wrap: on
line diff
--- a/src/gl-render.cc
+++ b/src/gl-render.cc
@@ -90,7 +90,7 @@
     int tw, th;
     double tx, ty;
     bool valid;
-    int count;
+    octave_refcount<int> count;
   };
 
   texture_rep *rep;
@@ -351,7 +351,7 @@
     float specular_exp;
 
     // reference counter
-    int count;
+    octave_refcount<int> count;
 
     vertex_data_rep (void)
       : coords (), color (), normal (), alpha (),