remove wx from agl
This commit is contained in:
parent
a0fdcaced8
commit
e63a5d8529
|
@ -107,7 +107,7 @@ public:
|
||||||
|
|
||||||
void* GetRenderHandle()
|
void* GetRenderHandle()
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) || defined(__APPLE__)
|
||||||
return (void *)m_RenderParent->GetHandle();
|
return (void *)m_RenderParent->GetHandle();
|
||||||
#elif defined(HAVE_X11) && HAVE_X11
|
#elif defined(HAVE_X11) && HAVE_X11
|
||||||
return (void *)X11Utils::XWindowFromHandle(m_RenderParent->GetHandle());
|
return (void *)X11Utils::XWindowFromHandle(m_RenderParent->GetHandle());
|
||||||
|
|
|
@ -20,8 +20,6 @@
|
||||||
#include "RenderBase.h"
|
#include "RenderBase.h"
|
||||||
#include "ConfigManager.h"
|
#include "ConfigManager.h"
|
||||||
|
|
||||||
#include <wx/panel.h>
|
|
||||||
|
|
||||||
#include "VertexShaderManager.h"
|
#include "VertexShaderManager.h"
|
||||||
#include "../GLInterface.h"
|
#include "../GLInterface.h"
|
||||||
#include "AGL.h"
|
#include "AGL.h"
|
||||||
|
@ -74,7 +72,7 @@ bool cInterfaceAGL::Create(void *&window_handle)
|
||||||
style |= NSResizableWindowMask | NSTitledWindowMask;
|
style |= NSResizableWindowMask | NSTitledWindowMask;
|
||||||
}
|
}
|
||||||
|
|
||||||
GLWin.cocoaWin = (NSView*)(((wxPanel*)window_handle)->GetHandle());;
|
GLWin.cocoaWin = (NSView*)window_handle;
|
||||||
if (GLWin.cocoaWin == nil) {
|
if (GLWin.cocoaWin == nil) {
|
||||||
ERROR_LOG(VIDEO, "failed to create window");
|
ERROR_LOG(VIDEO, "failed to create window");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -97,8 +95,6 @@ bool cInterfaceAGL::MakeCurrent()
|
||||||
|
|
||||||
width = [GLWin.cocoaWin frame].size.width;
|
width = [GLWin.cocoaWin frame].size.width;
|
||||||
height = [GLWin.cocoaWin frame].size.height;
|
height = [GLWin.cocoaWin frame].size.height;
|
||||||
//if (width == s_backbuffer_width && height == s_backbuffer_height)
|
|
||||||
// return true;
|
|
||||||
|
|
||||||
[GLWin.cocoaCtx setView: GLWin.cocoaWin];
|
[GLWin.cocoaCtx setView: GLWin.cocoaWin];
|
||||||
[GLWin.cocoaCtx update];
|
[GLWin.cocoaCtx update];
|
||||||
|
|
Loading…
Reference in New Issue