Skip to content

Commit

Permalink
Fix FillStyleExtension (#7568)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Jan 7, 2023
1 parent 6efcc77 commit b09ea63
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/extensions/src/fill-style/shaders.glsl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,9 @@ function getPatternUniforms(
};
}
if ('viewport' in opts) {
const {viewport, fillPatternMask = true, fillPatternEnabled = true} = opts;
const {project_uCoordinateOrigin} = uniforms as ProjectUniforms;
const {fillPatternMask = true, fillPatternEnabled = true} = opts;
const {project_uCommonOrigin: coordinateOriginCommon} = uniforms as ProjectUniforms;

const coordinateOriginCommon = viewport.projectPosition(project_uCoordinateOrigin);
const coordinateOriginCommon64Low = [
fp64LowPart(coordinateOriginCommon[0]),
fp64LowPart(coordinateOriginCommon[1])
Expand Down
Binary file modified test/render/golden-images/polygon-pattern-mask.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/render/golden-images/polygon-pattern.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b09ea63

Please sign in to comment.