summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/Src/SWmain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoBackends/Software/Src/SWmain.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/Src/SWmain.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Software/Src/SWmain.cpp b/Source/Core/VideoBackends/Software/Src/SWmain.cpp
index 074b6bc38b..582325d5f4 100644
--- a/Source/Core/VideoBackends/Software/Src/SWmain.cpp
+++ b/Source/Core/VideoBackends/Software/Src/SWmain.cpp
@@ -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");