1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #9320 from Snuffleupagus/pr-9095-followup

Avoid rendering errors by passing in the `webGLContext` when creating a new `CanvasGraphics` in `getColorN_Pattern` (PR 9095 follow-up)
This commit is contained in:
Tim van der Meij 2017-12-28 23:17:30 +01:00 committed by GitHub
commit 25bbff4692
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View file

@ -1665,7 +1665,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
var canvasGraphicsFactory = {
createCanvasGraphics: (ctx) => {
return new CanvasGraphics(ctx, this.commonObjs, this.objs,
this.canvasFactory);
this.canvasFactory, this.webGLContext);
},
};
pattern = new TilingPattern(IR, color, this.ctx, canvasGraphicsFactory,