Skip to content

Commit

Permalink
Merge pull request #26 from PeculiarVentures/pclines-safari-bugfix
Browse files Browse the repository at this point in the history
Fix Safari sub-pixel requesting in pcLines transform operation
  • Loading branch information
apilguk authored Oct 13, 2018
2 parents edc597a + 9e49d31 commit ba4cb52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

# [Unreleased]
### Fixed
- PCLines operation extra lines bug on Safari (part of https://github.com/PeculiarVentures/GammaCV/issues/25)

## [0.3.0] - 2018-08-29
### Added
- Export internal PCLines functions:
Expand Down
2 changes: 1 addition & 1 deletion lib/ops/pclines/transform.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ float getValue(float i, float lx, float ly, vec4 side) {
}

if (xx > 0.0 && xx < uWidth && yy > 0.0 && yy < uHeight) {
float a = pickScalarValue_tSrc(yy, xx);
float a = pickScalarValue_tSrc(floor(yy), floor(xx));

if (a > 0.0) {
return 1.0;
Expand Down

0 comments on commit ba4cb52

Please sign in to comment.