Skip to content

Commit

Permalink
Fix crash on Adreno 3xx GPU devices (e.g. vivo 1606, vivo 1610, Xiaom…
Browse files Browse the repository at this point in the history
…i Redmi Note 4G) (pixijs#6876)
  • Loading branch information
dumganhar authored Sep 14, 2020
1 parent c34355f commit 97e32e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/graphics/src/Graphics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1151,9 +1151,10 @@ export class Graphics extends Container
// but may be more than one plugins for graphics
if (!DEFAULT_SHADERS[pluginName])
{
const sampleValues = new Int32Array(16);
const MAX_TEXTURES = renderer.plugins.batch.MAX_TEXTURES;
const sampleValues = new Int32Array(MAX_TEXTURES);

for (let i = 0; i < 16; i++)
for (let i = 0; i < MAX_TEXTURES; i++)
{
sampleValues[i] = i;
}
Expand Down

0 comments on commit 97e32e9

Please sign in to comment.