Fix AGL.cpp

This commit is contained in:
Sonicadvance1 2013-01-21 21:48:02 +00:00
parent 2bae4345c5
commit 0ba1794df3
1 changed files with 2 additions and 7 deletions

View File

@ -18,6 +18,7 @@
#include "VideoConfig.h" #include "VideoConfig.h"
#include "Host.h" #include "Host.h"
#include "RenderBase.h" #include "RenderBase.h"
#include "ConfigManager.h"
#include "VertexShaderManager.h" #include "VertexShaderManager.h"
#include "../GLInterface.h" #include "../GLInterface.h"
@ -90,13 +91,6 @@ bool cInterfaceAGL::Create(void *&window_handle)
} }
bool cInterfaceAGL::MakeCurrent() bool cInterfaceAGL::MakeCurrent()
{
[GLWin.cocoaCtx makeCurrentContext];
return true;
}
// Update window width, size and etc. Called from Render.cpp
void cInterfaceAGL::Update()
{ {
int width, height; int width, height;
@ -110,6 +104,7 @@ void cInterfaceAGL::Update()
[GLWin.cocoaCtx makeCurrentContext]; [GLWin.cocoaCtx makeCurrentContext];
s_backbuffer_width = width; s_backbuffer_width = width;
s_backbuffer_height = height; s_backbuffer_height = height;
return true;
} }
// Close backend // Close backend