summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorSoren Jorvang <soren.jorvang@gmail.com>2011-01-20 05:06:29 +0000
committerSoren Jorvang <soren.jorvang@gmail.com>2011-01-20 05:06:29 +0000
commitbf2bb00f63b8abd28b7ebea6ac377593c1d76486 (patch)
treec7e735db24e4e85447c4465d3b766bef91a590bb /Source
parent82422371f307c307f471147dd850b45175b7064d (diff)
Disable the default PIC generation on OS X. This might make for a
minor performance improvement and also possibly make that platform a little less prone to problems with ABI assumptions in the JIT code, although I haven't measured the first or seen signs of the latter. Only the GL context needs to be specifically freed when shutting down OpenGL. The GL canvas is implicitly freed by wxWindow. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6885 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp2
-rw-r--r--Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp b/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp
index afde606fc9..75c79772b1 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp
@@ -572,7 +572,7 @@ void OpenGL_Update()
void OpenGL_Shutdown()
{
#if defined(USE_WX) && USE_WX
- delete GLWin.glCanvas;
+ delete GLWin.glCtxt;
#elif defined(__APPLE__)
[GLWin.cocoaWin close];
[GLWin.cocoaCtx clearDrawable];
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.cpp
index 7b49480400..d62ce2e630 100644
--- a/Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.cpp
+++ b/Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.cpp
@@ -383,7 +383,7 @@ void OpenGL_Update()
void OpenGL_Shutdown()
{
#if defined(USE_WX) && USE_WX
- delete GLWin.glCanvas;
+ delete GLWin.glCtxt;
#elif defined(_WIN32)
if (hRC) // Do We Have A Rendering Context?
{