Revert "Allow older GL context version on iOS"

This reverts commit f22423b0f1.
This commit is contained in:
Joshua Granick
2018-02-14 12:58:01 -08:00
parent 9271c55c0f
commit 918552df9c

View File

@@ -70,6 +70,11 @@ 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);