Author: ArcRiley
Date: 2008-02-11 07:05:45 -0500 (Mon, 11 Feb 2008)
New Revision: 862

Modified:
   trunk/pysoy/src/_core/Screen-x11.pxi
Log:
Resolved BadDrawable error on exit


Modified: trunk/pysoy/src/_core/Screen-x11.pxi
===================================================================
--- trunk/pysoy/src/_core/Screen-x11.pxi        2008-02-11 11:24:05 UTC (rev 
861)
+++ trunk/pysoy/src/_core/Screen-x11.pxi        2008-02-11 12:05:45 UTC (rev 
862)
@@ -98,12 +98,12 @@
       if _screens.current == 0 :
         # When the first attempted screen open failed
         glx.XCloseDisplay(_display) 
+        _display = NULL
       return
     _screens.lock()
     _screens.remove(<void *>self)
     if _screens.current == 0 :
       # When the last screen is closed..
-      glx.glXDestroyContext(_display, _glxContext)
       glx.XCloseDisplay(_display) 
       _display = NULL
     _screens.unlock()

_______________________________________________
PySoy-SVN mailing list
[email protected]
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to