remove wx from agl

This commit is contained in:
degasus
2013-03-14 09:52:13 +01:00
parent a0fdcaced8
commit e63a5d8529
2 changed files with 2 additions and 6 deletions

View File

@ -20,8 +20,6 @@
#include "RenderBase.h"
#include "ConfigManager.h"
#include <wx/panel.h>
#include "VertexShaderManager.h"
#include "../GLInterface.h"
#include "AGL.h"
@ -74,7 +72,7 @@ bool cInterfaceAGL::Create(void *&window_handle)
style |= NSResizableWindowMask | NSTitledWindowMask;
}
GLWin.cocoaWin = (NSView*)(((wxPanel*)window_handle)->GetHandle());;
GLWin.cocoaWin = (NSView*)window_handle;
if (GLWin.cocoaWin == nil) {
ERROR_LOG(VIDEO, "failed to create window");
return NULL;
@ -97,8 +95,6 @@ bool cInterfaceAGL::MakeCurrent()
width = [GLWin.cocoaWin frame].size.width;
height = [GLWin.cocoaWin frame].size.height;
//if (width == s_backbuffer_width && height == s_backbuffer_height)
// return true;
[GLWin.cocoaCtx setView: GLWin.cocoaWin];
[GLWin.cocoaCtx update];