mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
OpenGL ES 3 contexts can only be reliably created on iOS (for now.)
--HG-- branch : minor
This commit is contained in:
@@ -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.
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user