fixed: if we're checking member variables for != 0, then it's a good idea to set...
authorbobo1on1 <bobo1on1@svn>
Thu, 30 Sep 2010 15:27:10 +0000 (15:27 +0000)
committerbobo1on1 <bobo1on1@svn>
Thu, 30 Sep 2010 15:27:10 +0000 (15:27 +0000)
(cherry picked from commit 8700613d1c80a60065b4074f80bad3b9c394ffde)

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@34329 568bbfeb-2a22-0410-94d2-cc84cf5bfa90

xbmc/WinSystemX11.cpp

index 8653b7b..0b4f5f6 100644 (file)
@@ -77,7 +77,11 @@ bool CWinSystemX11::DestroyWindowSystem()
   {
     if (m_glContext)
       glXDestroyContext(m_dpy, m_glContext);
+
+    m_glContext = 0;
+
     XCloseDisplay(m_dpy);
+    m_dpy = NULL;
   }
 
   // m_SDLSurface is free()'d by SDL_Quit().