Allow older GL context version on iOS

This commit is contained in:
Joshua Granick
2018-02-14 11:30:40 -08:00
parent d3a674ff59
commit f22423b0f1

View File

@@ -70,11 +70,6 @@ namespace lime {
SDL_SetHint (SDL_HINT_RENDER_DRIVER, "opengles2");
#endif
#if defined (IPHONE) || defined (APPLETV)
SDL_GL_SetAttribute (SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
SDL_GL_SetAttribute (SDL_GL_CONTEXT_MAJOR_VERSION, 3);
#endif
if (flags & WINDOW_FLAG_DEPTH_BUFFER) {
SDL_GL_SetAttribute (SDL_GL_DEPTH_SIZE, 32 - (flags & WINDOW_FLAG_STENCIL_BUFFER) ? 8 : 0);