-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it possible to create distance field with specific size
The distance field size calculation is floating point math and sensitive to numerical errors. When used in Qt Quick, it is vital that the allocated memory is the same as what we calculate in the cache, otherwise we will get memory corruption. In certain cases, numerical errors would cause a qCeil() to round what was actually an integer up, and we would end up with an allocated size that was off by one. To avoid this, we allow the user to specify the size to allocate, so that we can do the calculation in a single place. Pick-to: 5.15 6.2 6.5 6.7 6.8 Task-number: QTBUG-124572 Change-Id: I14e381952fdf331286f1ae4b51bb5fef9e39d704 Reviewed-by: Eirik Aavitsland <[email protected]>
- Loading branch information
1 parent
90e79ae
commit b959b8f
Showing
2 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters