forked from organicmaps/organicmaps
[ios] Reverted back to OpenGL 1.1
This commit is contained in:
parent
fa0983cdd3
commit
f3231c5b5c
2 changed files with 9 additions and 4 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue