Revision: 34330
http://xbmc.svn.sourceforge.net/xbmc/?rev=34330&view=rev
Author: bobo1on1
Date: 2010-09-30 15:27:31 +0000 (Thu, 30 Sep 2010)
Log Message:
-----------
apply r33972 to gles
(cherry picked from commit c48f3676d346a2b2f889e33b5c071b1de4e18ae0)
Modified Paths:
--------------
branches/Dharma/xbmc/WinSystemEGL.cpp
Modified: branches/Dharma/xbmc/WinSystemEGL.cpp
===================================================================
--- branches/Dharma/xbmc/WinSystemEGL.cpp 2010-09-30 15:27:10 UTC (rev 34329)
+++ branches/Dharma/xbmc/WinSystemEGL.cpp 2010-09-30 15:27:31 UTC (rev 34330)
@@ -124,24 +124,42 @@
bool CWinSystemEGL::DestroyWindowSystem()
{
if (m_eglContext)
+ {
eglDestroyContext(m_eglDisplay, m_eglContext);
+ m_eglContext = 0;
+ }
if (m_eglSurface)
+ {
eglDestroySurface(m_eglDisplay, m_eglSurface);
+ m_eglSurface = NULL;
+ }
// Needed???
if (m_eglWindow)
+ {
XDestroyWindow(m_dpy, m_eglWindow);
+ m_eglWindow = 0;
+ }
// Needed???
if (m_wmWindow)
+ {
XDestroyWindow(m_dpy, m_wmWindow);
+ m_wmWindow = 0;
+ }
if (m_eglDisplay)
+ {
eglTerminate(m_eglDisplay);
+ m_eglDisplay = 0;
+ }
if (m_dpy)
+ {
XCloseDisplay(m_dpy);
+ m_dpy = NULL;
+ }
return true;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|