aboutsummaryrefslogtreecommitdiff
path: root/guilib/GraphicContext.cpp
diff options
context:
space:
mode:
authorelupus <elupus@svn>2010-04-30 15:44:24 +0000
committerelupus <elupus@svn>2010-04-30 15:44:24 +0000
commitaa7dccf04d457ac2a7171ade6035c4ebadd92993 (patch)
treee34e0a563e109e3a082ef2f9f76f3fa56de42539 /guilib/GraphicContext.cpp
parent4cd22b797f3dec5cea647fd89bcb8a0e185ee581 (diff)
Ticket #9126: Force global destruction order + construction order to avoid crashes at exit. Thx CrystalP for initial patch
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29685 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GraphicContext.cpp')
-rw-r--r--guilib/GraphicContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/guilib/GraphicContext.cpp b/guilib/GraphicContext.cpp
index e8ddc92d12..0f1d966184 100644
--- a/guilib/GraphicContext.cpp
+++ b/guilib/GraphicContext.cpp
@@ -31,10 +31,11 @@
#include "TextureManager.h"
#include "MouseStat.h"
#include "GUIWindowManager.h"
+#include "SystemGlobals.h"
using namespace std;
-CGraphicContext g_graphicsContext;
+CGraphicContext& g_graphicsContext = g_SystemGlobals.m_graphicsContext;
extern bool g_fullScreen;
/* quick access to a skin setting, fine unless we starts clearing video settings */