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:
authorExMix <rahuba.youri@mapswithme.com>2013-10-31 13:53:45 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:04:29 +0300
commit88088d3c09185ee48a68f3acf946d59e8888d155 (patch)
treec0a7affd72c16659319e4b752917c772c59efb2f /iphone/Maps/Classes/EAGLView.mm
parentaf506c1e7edc53144d56765e1c5daeb890b677df (diff)
remove useless code
Diffstat (limited to 'iphone/Maps/Classes/EAGLView.mm')
-rw-r--r--iphone/Maps/Classes/EAGLView.mm11
1 files changed, 2 insertions, 9 deletions
diff --git a/iphone/Maps/Classes/EAGLView.mm b/iphone/Maps/Classes/EAGLView.mm
index fc92d01da7..0cef454a4b 100644
--- a/iphone/Maps/Classes/EAGLView.mm
+++ b/iphone/Maps/Classes/EAGLView.mm
@@ -70,13 +70,7 @@
- (void)initRenderPolicy
{
NSLog(@"EAGLView initRenderPolicy Started");
-
- // to avoid grid bug on 3G device
- graphics::DataFormat rtFmt = graphics::Data4Bpp;
- graphics::DataFormat texFmt = graphics::Data4Bpp;
- if ([[NSString stringWithFormat:@"%s", glGetString(GL_RENDERER)] hasPrefix:@"PowerVR MBX"])
- rtFmt = graphics::Data8Bpp;
-
+
typedef void (*drawFrameFn)(id, SEL);
SEL drawFrameSel = @selector(drawFrame);
drawFrameFn drawFrameImpl = (drawFrameFn)[self methodForSelector:drawFrameSel];
@@ -85,8 +79,7 @@
graphics::ResourceManager::Params rmParams;
rmParams.m_videoMemoryLimit = GetPlatform().VideoMemoryLimit();
- rmParams.m_rtFormat = rtFmt;
- rmParams.m_texFormat = texFmt;
+ rmParams.m_texFormat = graphics::Data4Bpp;
RenderPolicy::Params rpParams;