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

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2015-02-21 17:16:40 -04:00
parent 622b737019
commit 33f57ce8fd
+5
View File
@@ -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.
};