forked from organicmaps/organicmaps
changes according to code review.
This commit is contained in:
parent
e019afb678
commit
ed51c2a859
2 changed files with 3 additions and 5 deletions
|
@ -13,9 +13,7 @@ namespace iphone
|
|||
OGLCHECK(glGenRenderbuffersOES(1, &m_id));
|
||||
makeCurrent();
|
||||
|
||||
BOOL res;
|
||||
|
||||
res = [m_renderContext->getEAGLContext() renderbufferStorage:GL_RENDERBUFFER_OES fromDrawable:layer];
|
||||
BOOL res = [m_renderContext->getEAGLContext() renderbufferStorage:GL_RENDERBUFFER_OES fromDrawable:layer];
|
||||
|
||||
if (res == NO)
|
||||
LOG(LINFO, ("renderbufferStorage:fromDrawable has failed!"));
|
||||
|
|
|
@ -254,7 +254,7 @@ void ScreenCoverage::SetScreen(ScreenBase const & screen)
|
|||
int cacheDepthes[] = {0, 1, 2};
|
||||
#endif
|
||||
|
||||
m_tiler.tiles(allRects, cacheDepthes, sizeof(cacheDepthes) / sizeof(int));
|
||||
m_tiler.tiles(allRects, cacheDepthes, ARRAY_SIZE(cacheDepthes));
|
||||
|
||||
TileCache * tileCache = &m_tileRenderer->GetTileCache();
|
||||
|
||||
|
@ -355,7 +355,7 @@ void ScreenCoverage::SetScreen(ScreenBase const & screen)
|
|||
#endif
|
||||
|
||||
if ((nr.m_tileScale == m_tiler.tileScale() - step)
|
||||
||(nr.m_tileScale == m_tiler.tileScale() ))
|
||||
|| (nr.m_tileScale == m_tiler.tileScale() ))
|
||||
firstClassTiles.push_back(nr);
|
||||
else
|
||||
secondClassTiles.push_back(nr);
|
||||
|
|
Loading…
Add table
Reference in a new issue