Browse Source

fix crash on exit

David Rose 24 years ago
parent
commit
e96de98a73

+ 9 - 0
panda/src/display/graphicsStateGuardian.cxx

@@ -70,6 +70,15 @@ GraphicsStateGuardian(GraphicsWindow *win) {
   reset();
 }
 
+////////////////////////////////////////////////////////////////////
+//     Function: GraphicsStateGuardian::Destructor
+//       Access: Public
+//  Description: 
+////////////////////////////////////////////////////////////////////
+GraphicsStateGuardian::
+~GraphicsStateGuardian() {
+}
+
 ////////////////////////////////////////////////////////////////////
 //     Function: GraphicsStateGuardian::release_all_textures
 //       Access: Public

+ 1 - 0
panda/src/display/graphicsStateGuardian.h

@@ -41,6 +41,7 @@ class EXPCL_PANDA GraphicsStateGuardian : public GraphicsStateGuardianBase {
   //
 public:
   GraphicsStateGuardian(GraphicsWindow *win);
+  ~GraphicsStateGuardian();
 
 PUBLISHED:
   INLINE void set_render_traverser(RenderTraverser *rt);