mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Have our OpenGL/ES context creation be less stupid.
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user