forked from organicmaps/organicmaps-tmp
we don't need to move rect. Only narrow to avoid texture upscale
This commit is contained in:
parent
4d04e931fd
commit
cd4b4448f9
1 changed files with 7 additions and 7 deletions
|
@ -27,16 +27,16 @@ namespace graphics
|
|||
ASSERT(res->m_cat == Resource::EImage, ());
|
||||
|
||||
m2::RectI texRect(res->m_texRect);
|
||||
texRect.Inflate(-1, -1);
|
||||
texRect.Inflate(-2, -2);
|
||||
|
||||
m2::PointF pts[6] =
|
||||
{
|
||||
m2::PointF(m2::PointD(-1, -1) * m),
|
||||
m2::PointF(m2::PointD(texRect.SizeX() - 1, -1) * m),
|
||||
m2::PointF(m2::PointD(texRect.SizeX() - 1, texRect.SizeY() - 1) * m),
|
||||
m2::PointF(m2::PointD(texRect.SizeX() - 1, texRect.SizeY() - 1) * m),
|
||||
m2::PointF(m2::PointD(-1, texRect.SizeY() - 1) * m),
|
||||
m2::PointF(m2::PointD(-1, -1) * m)
|
||||
m2::PointF(m2::PointD(0, 0) * m),
|
||||
m2::PointF(m2::PointD(texRect.SizeX(), 0) * m),
|
||||
m2::PointF(m2::PointD(texRect.SizeX(), texRect.SizeY()) * m),
|
||||
m2::PointF(m2::PointD(texRect.SizeX(), texRect.SizeY()) * m),
|
||||
m2::PointF(m2::PointD(0, texRect.SizeY()) * m),
|
||||
m2::PointF(m2::PointD(0, 0) * m)
|
||||
};
|
||||
|
||||
GeometryPipeline & p = pipeline(res->m_pipelineID);
|
||||
|
|
Loading…
Add table
Reference in a new issue