Browse Source

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

Alex Szpakowski 10 năm trước cách đây
mục cha
commit
a9e4be760e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)