diff --git a/packages/graphics/src/GraphicsGeometry.js b/packages/graphics/src/GraphicsGeometry.js index 6751354..07c2eb7 100644 --- a/packages/graphics/src/GraphicsGeometry.js +++ b/packages/graphics/src/GraphicsGeometry.js @@ -445,7 +445,7 @@ currentTexture = style.texture.baseTexture; currentColor = style.color + style.alpha; - currentNative = style.native; + currentNative = !!style.native; } for (let i = this.shapeIndex; i < this.graphicsData.length; i++) @@ -481,7 +481,7 @@ if (batchPart && (currentTexture !== nextTexture || currentColor !== (style.color + style.alpha) - || currentNative !== style.native)) + || currentNative !== !!style.native)) { batchPart.size = index - batchPart.start; batchPart.attribSize = attribIndex - batchPart.attribStart; @@ -650,7 +650,7 @@ const nextTexture = style.texture.baseTexture; - if (native !== style.native) + if (native !== !!style.native) { native = style.native; drawMode = native ? DRAW_MODES.LINES : DRAW_MODES.TRIANGLES;