Browse Source

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

Alex Szpakowski 10 years ago
parent
commit
a9e4be760e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/window/sdl/Window.cpp

+ 1 - 1
src/modules/window/sdl/Window.cpp

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