Have our OpenGL/ES context creation be less stupid.

This commit is contained in:
Ryan Houdek
2013-12-12 12:43:49 -06:00
parent 2a0adc3972
commit f9ff0bc55d
6 changed files with 44 additions and 16 deletions

View File

@ -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");