Skip to content

Commit da8fa83

Browse files
committed
Changed default back.
1 parent afc9635 commit da8fa83

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/pixi/renderers/webgl/utils/WebGLGraphics.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PIXI.WebGLGraphics = function()
1818
*
1919
* @type {number}
2020
*/
21-
PIXI.WebGLGraphics.stencilBufferLimit = 64;
21+
PIXI.WebGLGraphics.stencilBufferLimit = 6;
2222

2323
/**
2424
* Renders the graphics object
@@ -747,7 +747,7 @@ PIXI.WebGLGraphics.buildComplexPoly = function(graphicsData, webGLData)
747747
{
748748
//TODO - no need to copy this as it gets turned into a FLoat32Array anyways..
749749
var points = graphicsData.points.slice();
750-
if(points.length < PIXI.WebGLGraphics.stencilBufferLimit)return;
750+
if(points.length < 6)return;
751751

752752
// get first and last point.. figure out the middle!
753753
var indices = webGLData.indices;
@@ -809,7 +809,7 @@ PIXI.WebGLGraphics.buildPoly = function(graphicsData, webGLData)
809809
{
810810
var points = graphicsData.points;
811811

812-
if(points.length < PIXI.WebGLGraphics.stencilBufferLimit)return;
812+
if(points.length < 6)return;
813813
// get first and last point.. figure out the middle!
814814
var verts = webGLData.points;
815815
var indices = webGLData.indices;

0 commit comments

Comments
 (0)