mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Have our OpenGL/ES context creation be less stupid.
This commit is contained in:
parent
2a0adc3972
commit
f9ff0bc55d
6 changed files with 44 additions and 16 deletions
|
@ -61,8 +61,12 @@ void VideoSoftware::ShowConfig(void *_hParent)
|
|||
bool VideoSoftware::Initialize(void *&window_handle)
|
||||
{
|
||||
g_SWVideoConfig.Load((File::GetUserPath(D_CONFIG_IDX) + "gfx_software.ini").c_str());
|
||||
InitInterface();
|
||||
|
||||
InitInterface();
|
||||
GLInterface->SetMode(GLInterfaceMode::MODE_OPENGL);
|
||||
#ifdef USE_GLES
|
||||
GLInterface->SetMode(GLInterfaceMode::MODE_OPENGLES2);
|
||||
#endif
|
||||
if (!GLInterface->Create(window_handle))
|
||||
{
|
||||
INFO_LOG(VIDEO, "%s", "SWRenderer::Create failed\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue