diff --git a/iphone/Maps/Classes/RenderContext.mm b/iphone/Maps/Classes/RenderContext.mm index 6677de0a41..4c20d4ae56 100644 --- a/iphone/Maps/Classes/RenderContext.mm +++ b/iphone/Maps/Classes/RenderContext.mm @@ -13,12 +13,14 @@ namespace iphone { RenderContext::RenderContext() { - m_context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]; + m_context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES1]; + //m_context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]; } RenderContext::RenderContext(RenderContext * renderContext) { - m_context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2 sharegroup:renderContext->m_context.sharegroup]; + m_context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES1 sharegroup:renderContext->m_context.sharegroup]; + //m_context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2 sharegroup:renderContext->m_context.sharegroup]; } RenderContext::~RenderContext() diff --git a/yg/yg.pro b/yg/yg.pro index ccb3a909b8..53adc0c53b 100644 --- a/yg/yg.pro +++ b/yg/yg.pro @@ -118,8 +118,11 @@ HEADERS += \ packets_queue.hpp \ display_list.hpp -# uncomment to enable GLSL support -CONFIG += glsl +# At the moment do not use OpenGL 2.0 on iOS. +!iphone* { + # uncomment to enable GLSL support + CONFIG += glsl +} win32* { SOURCES += internal/opengl_win32.cpp