From 33f57ce8fd571f6624530b7e7a080aa40d471d34 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 21 Feb 2015 17:16:40 -0400 Subject: [PATCH] OpenGL ES 3 contexts can only be reliably created on iOS (for now.) --HG-- branch : minor --- src/modules/window/sdl/Window.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/window/sdl/Window.cpp b/src/modules/window/sdl/Window.cpp index ee6a95cad..76e039aa0 100644 --- a/src/modules/window/sdl/Window.cpp +++ b/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 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. };