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-15 19:51:10 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:27:59 +0300
commitf3c52f5f480471698a8b5c432bea5f359fe1c318 (patch)
treee2cd75b316c9ce6900410524877d237feeb200cf /iphone/Maps/Classes/EAGLView.mm
parent80197ff164e831d571ee4949583e48516e0aec43 (diff)
improved scaling of OpenGL resources allocation.
Diffstat (limited to 'iphone/Maps/Classes/EAGLView.mm')
-rw-r--r--iphone/Maps/Classes/EAGLView.mm6
1 files changed, 5 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/EAGLView.mm b/iphone/Maps/Classes/EAGLView.mm
index 6f62c7165b..b7a7a05f47 100644
--- a/iphone/Maps/Classes/EAGLView.mm
+++ b/iphone/Maps/Classes/EAGLView.mm
@@ -98,7 +98,11 @@
videoTimer = CreateIOSVideoTimer(bind(drawFrameImpl, self, drawFrameSel));
- renderPolicy = CreateRenderPolicy(videoTimer, p, renderContext);
+ yg::ResourceManager::Params rmParams;
+ rmParams.m_videoMemoryLimit = GetPlatform().VideoMemoryLimit();
+ rmParams.m_rtFormat = fmt;
+
+ renderPolicy = CreateRenderPolicy(videoTimer, p, rmParams, renderContext);
framework->SetRenderPolicy(renderPolicy);
}