Erik Hofman wrote:
> Curtis L. Olson wrote:
> > I'm getting a seg fault on exit these days somewhere in ~SGTexture.  I
> > haven't investigated further than that ... anyone have any ideas?
>
> I am not seeing this.
> Could it be the result of a stale object file?

I am seeing the same problem with MSVC and we need to apply the patch
below to fix it. Otherwise, there is a double deletion of the same
memory, in the destructor.

-Fred

D:\FlightGear\cvs\SimGear\simgear\screen>cvs -q diff -u texture.hxx
Index: texture.hxx
===================================================================
RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/screen/texture.hxx,v
retrieving revision 1.3
diff -u -r1.3 texture.hxx
--- texture.hxx 1 Jul 2003 09:49:45 -0000       1.3
+++ texture.hxx 9 Jul 2003 20:05:30 -0000
@@ -111,6 +111,7 @@
                       GL_RGB, GL_UNSIGNED_BYTE, texture_data );

         delete texture_data;
+        texture_data = 0;
     }

     // Nowhere does it say that resident textures have to be in video
memory!



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to