-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rendering bugs caused by intersecting rects with different mipMap…
…Levels. (#918) * Minor cleanup to help make it easier to verify correctness of fix. - Updated rod computation so that rod could be declared as const. This is to make it easier to prove that this variable does not change beyond this point. - Moved initial roi computation down to the image bounds computation code since that is where it is initially used and gets updated. - Introduced isSupportedRenderScale() helper to remove duplicate code related to RenderScale support. * Fix rendering bugs caused by intersecting rects with different mipMapLevels. This change fixes 2 bugs where RectI objects containing information for different mipMapLevels were being intersected with eachother. This was causing visible compositing errors in the viewer when viewing the image zoomed out and partially clipped by the edge of the viewer. This fix just makes sure the RectIs are converted to the proper mipMapLevel before being intersected.
- Loading branch information
Showing
4 changed files
with
62 additions
and
68 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
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