[ios] Reverted back to OpenGL 1.1

This commit is contained in:
Alex Zolotarev 2012-05-08 16:59:02 +03:00 committed by Alex Zolotarev
parent fa0983cdd3
commit f3231c5b5c
2 changed files with 9 additions and 4 deletions

View file

@ -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()

View file

@ -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