summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorSonicadvance1 <Sonicadvance1@gmail.com>2013-01-21 21:48:02 +0000
committerSonicadvance1 <Sonicadvance1@gmail.com>2013-01-21 21:48:02 +0000
commit0ba1794df3ee479ade6520ac46860610774ffdff (patch)
tree2554c4ebfc4dd6b444e277ea9c61387efdc6a8bc /Source/Core
parent2bae4345c58c3684b6375ad4de847876e5e77357 (diff)
Fix AGL.cpp
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/Src/GLInterface/AGL.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/Core/DolphinWX/Src/GLInterface/AGL.cpp b/Source/Core/DolphinWX/Src/GLInterface/AGL.cpp
index 30ff4a31cf..cf68c0baa4 100644
--- a/Source/Core/DolphinWX/Src/GLInterface/AGL.cpp
+++ b/Source/Core/DolphinWX/Src/GLInterface/AGL.cpp
@@ -18,6 +18,7 @@
#include "VideoConfig.h"
#include "Host.h"
#include "RenderBase.h"
+#include "ConfigManager.h"
#include "VertexShaderManager.h"
#include "../GLInterface.h"
@@ -91,13 +92,6 @@ bool cInterfaceAGL::Create(void *&window_handle)
bool cInterfaceAGL::MakeCurrent()
{
- [GLWin.cocoaCtx makeCurrentContext];
- return true;
-}
-
-// Update window width, size and etc. Called from Render.cpp
-void cInterfaceAGL::Update()
-{
int width, height;
width = [[GLWin.cocoaWin contentView] frame].size.width;
@@ -110,6 +104,7 @@ void cInterfaceAGL::Update()
[GLWin.cocoaCtx makeCurrentContext];
s_backbuffer_width = width;
s_backbuffer_height = height;
+ return true;
}
// Close backend