mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Correctly access colorSpace.numComps
in MeshStreamReader
(issue 6287)
This regressed in f750e35224
.
This commit is contained in:
parent
7fe2442a18
commit
1d65daf5e5
4 changed files with 9 additions and 1 deletions
|
@ -225,7 +225,7 @@ Shadings.Mesh = (function MeshClosure() {
|
|||
|
||||
var numComps = context.numComps;
|
||||
this.tmpCompsBuf = new Float32Array(numComps);
|
||||
var csNumComps = context.colorSpace;
|
||||
var csNumComps = context.colorSpace.numComps;
|
||||
this.tmpCsCompsBuf = context.colorFn ? new Float32Array(csNumComps) :
|
||||
this.tmpCompsBuf;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue