forked from organicmaps/organicmaps
fixed bug with "number of periods on the texture" calculation.
This commit is contained in:
parent
22e3a7a351
commit
cb731dc273
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ namespace yg
|
|||
curLen += tmpV[i++];
|
||||
}
|
||||
|
||||
int periods = max(int(256 / length), 1);
|
||||
int periods = max(int((256 - 4) / length), 1);
|
||||
m_pat.reserve(periods * vec.size());
|
||||
for (int i = 0; i < periods; ++i)
|
||||
copy(vec.begin(), vec.end(), back_inserter(m_pat));
|
||||
|
|
Loading…
Add table
Reference in a new issue