Updated the list of SDL backends which should default to OpenGL ES to include emscripten.

This commit is contained in:
Alex Szpakowski
2015-06-02 23:06:31 -03:00
parent 48a0910907
commit a9e4be760e
+1 -1
View File
@@ -161,7 +161,7 @@ bool Window::createWindowAndContext(int x, int y, int w, int h, Uint32 windowfla
#endif
const char *curdriver = SDL_GetCurrentVideoDriver();
const char *glesdrivers[] = {"RPI", "Android", "uikit", "winrt"};
const char *glesdrivers[] = {"RPI", "Android", "uikit", "winrt", "emscripten"};
// We always want to try OpenGL ES first on certain video backends.
for (const char *glesdriver : glesdrivers)