Browse Source

OpenGL ES 3 contexts can only be reliably created on iOS (for now.)

--HG--
branch : minor
Alex Szpakowski 10 years ago
parent
commit
33f57ce8fd
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/modules/window/sdl/Window.cpp

+ 5 - 0
src/modules/window/sdl/Window.cpp

@@ -181,9 +181,14 @@ bool Window::createWindowAndContext(int x, int y, int w, int h, Uint32 windowfla
 	bool debug = (debughint != nullptr && debughint[0] != '0');
 
 	// Different context attribute profiles to try.
+	// FIXME: OpenGL ES 3 is disabled on non-iOS because SDL's EGL code doesn't
+	// properly handle OpenGL ES 3 context creation requests (for now.)
+	// https://bugzilla.libsdl.org/show_bug.cgi?id=2865
 	std::vector<ContextAttribs> attribslist = {
 		{2, 1, false, debug}, // OpenGL 2.1.
+#ifdef LOVE_IOS
 		{3, 0, true,  debug}, // OpenGL ES 3.
+#endif
 		{2, 0, true,  debug}, // OpenGL ES 2.
 	};