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

@ -179,6 +179,10 @@ bool VideoBackend::Initialize(void *&window_handle)
UpdateActiveConfig();
InitInterface();
GLInterface->SetMode(GLInterfaceMode::MODE_OPENGL);
#ifdef USE_GLES3
GLInterface->SetMode(GLInterfaceMode::MODE_OPENGLES3);
#endif
if (!GLInterface->Create(window_handle))
return false;