Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2011-11-26 02:37:24 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:29:01 +0300
commitefa524931836e5e0b65adc301de7fb157dbadb54 (patch)
tree279d7ac048b6a3884df5c3b5dac3857f8225318d /iphone/Maps/Classes/EAGLView.mm
parente61ecd15516c555bf1c705c4f57eaad275f7c9a4 (diff)
refactored OpenGL extensions initialization.
Diffstat (limited to 'iphone/Maps/Classes/EAGLView.mm')
-rw-r--r--iphone/Maps/Classes/EAGLView.mm10
1 files changed, 2 insertions, 8 deletions
diff --git a/iphone/Maps/Classes/EAGLView.mm b/iphone/Maps/Classes/EAGLView.mm
index 002902f9d4..e0198acef1 100644
--- a/iphone/Maps/Classes/EAGLView.mm
+++ b/iphone/Maps/Classes/EAGLView.mm
@@ -81,18 +81,11 @@
- (void)initRenderPolicy
{
- frameBuffer = shared_ptr<yg::gl::FrameBuffer>(new yg::gl::FrameBuffer());
-
- NSLog(@"Vendor: %s, Renderer: %s", glGetString(GL_VENDOR), glGetString(GL_RENDERER));
-
// to avoid grid bug on 3G device
yg::RtFormat fmt = yg::Rt4Bpp;
if ([[NSString stringWithFormat:@"%s", glGetString(GL_RENDERER)] hasPrefix:@"PowerVR MBX"])
fmt = yg::Rt8Bpp;
- DrawerYG::params_t p;
- p.m_frameBuffer = frameBuffer;
-
typedef void (*drawFrameFn)(id, SEL);
SEL drawFrameSel = @selector(drawFrame);
drawFrameFn drawFrameImpl = (drawFrameFn)[self methodForSelector:drawFrameSel];
@@ -103,7 +96,8 @@
rmParams.m_videoMemoryLimit = GetPlatform().VideoMemoryLimit();
rmParams.m_rtFormat = fmt;
- renderPolicy = CreateRenderPolicy(videoTimer, p, rmParams, renderContext);
+ renderPolicy = CreateRenderPolicy(videoTimer, false, rmParams, renderContext);
+ frameBuffer = renderPolicy->GetDrawer()->screen()->frameBuffer();
framework->SetRenderPolicy(renderPolicy);
}