From cdf64b819940aa9239fa5a0842fc9b8f34e2c6cf Mon Sep 17 00:00:00 2001 From: nakeee Date: Sun, 14 Dec 2008 11:19:02 +0000 Subject: [PATCH] wxgl works sometimes on dual core but hardly ever on single git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1527 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp b/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp index 73060b1c0d..b678220598 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp @@ -200,6 +200,7 @@ bool OpenGL_Create(SVideoInitialize &_VideoInitialize, int _iwidth, int _iheight GLWin.cocoaWin = cocoaGLCreateWindow(GLWin.width, GLWin.height); GLWin.cocoaCtx = cocoaGLInit(g_Config.iMultisampleMode); #elif defined(USE_WX) && USE_WX + int args[] = {WX_GL_RGBA, WX_GL_DOUBLEBUFFER, WX_GL_DEPTH_SIZE, 16, 0}; wxSize size(_iwidth, _iheight); if (!g_Config.renderToMainframe || @@ -210,7 +211,7 @@ bool OpenGL_Create(SVideoInitialize &_VideoInitialize, int _iwidth, int _iheight GLWin.frame = new wxFrame((wxWindow *)NULL, -1, _("Dolphin"), wxPoint(0,0), size); } - GLWin.glCanvas = new wxGLCanvas(GLWin.frame, wxID_ANY, NULL, + GLWin.glCanvas = new wxGLCanvas(GLWin.frame, wxID_ANY, args, wxPoint(0,0), size, wxSUNKEN_BORDER); GLWin.glCtxt = new wxGLContext(GLWin.glCanvas);