mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Ensure that we don't use the same typed array for both coords
and colors
in Mesh figures
(issue 6287)
This regressed in 1e8d70af98
.
This commit is contained in:
parent
e876dd8123
commit
7fe2442a18
4 changed files with 12 additions and 10 deletions
|
@ -345,13 +345,10 @@ Shadings.Mesh = (function MeshClosure() {
|
|||
|
||||
reader.align();
|
||||
}
|
||||
|
||||
var psPacked = new Int32Array(ps);
|
||||
|
||||
mesh.figures.push({
|
||||
type: 'triangles',
|
||||
coords: psPacked,
|
||||
colors: psPacked
|
||||
coords: new Int32Array(ps),
|
||||
colors: new Int32Array(ps),
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -366,13 +363,10 @@ Shadings.Mesh = (function MeshClosure() {
|
|||
coords.push(coord);
|
||||
colors.push(color);
|
||||
}
|
||||
|
||||
var psPacked = new Int32Array(ps);
|
||||
|
||||
mesh.figures.push({
|
||||
type: 'lattice',
|
||||
coords: psPacked,
|
||||
colors: psPacked,
|
||||
coords: new Int32Array(ps),
|
||||
colors: new Int32Array(ps),
|
||||
verticesPerRow: verticesPerRow
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue