gsdx-ogl-wnd: * add a preliminary context and wgl management

Note: don't expect to compile/work yet


git-svn-id: http://pcsx2.googlecode.com/svn/branches/gsdx-ogl-wnd@5502 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut committed 2013-01-04 21:33:24 +00:00
1 parent d91b28ac32
commit 5e4bae5f5d
11 files changed
+478 -47

No files matched your search

+9 -9
View File
@@ -33,6 +33,7 @@
#include "GSDevice9.h"
#include "GSDevice11.h"
#include "GSWndDX.h"
#include "GSWndWGL.h"
#include "GSRendererCS.h"
#include "GSSettingsDlg.h"
@@ -270,15 +271,14 @@ static int _GSopen(void** dsp, char* title, int renderer, int threads = -1)
if (s_gs->m_wnd == NULL)
{
switch(renderer / 3)
{
default:
#ifdef _WINDOWS
s_gs->m_wnd = new GSWndDX(); break;
#else
case 4: s_gs->m_wnd = new GSWndOGL(); break;
#endif
}
#ifdef _WINDOWS
if (renderer / 3 == 4)
s_gs->m_wnd = new GSWndWGL();
else
s_gs->m_wnd = new GSWndDX();
#else
s_gs->m_wnd = new GSWndOGL();
#endif
}
}
catch(std::exception& ex)