From da8fa83730369f5324c21014838e9d5efb6f6c64 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Thu, 4 Feb 2016 16:00:16 +0000 Subject: [PATCH] Changed default back. --- src/pixi/renderers/webgl/utils/WebGLGraphics.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pixi/renderers/webgl/utils/WebGLGraphics.js b/src/pixi/renderers/webgl/utils/WebGLGraphics.js index 60e32a401..ef09bb2aa 100644 --- a/src/pixi/renderers/webgl/utils/WebGLGraphics.js +++ b/src/pixi/renderers/webgl/utils/WebGLGraphics.js @@ -18,7 +18,7 @@ PIXI.WebGLGraphics = function() * * @type {number} */ -PIXI.WebGLGraphics.stencilBufferLimit = 64; +PIXI.WebGLGraphics.stencilBufferLimit = 6; /** * Renders the graphics object @@ -747,7 +747,7 @@ PIXI.WebGLGraphics.buildComplexPoly = function(graphicsData, webGLData) { //TODO - no need to copy this as it gets turned into a FLoat32Array anyways.. var points = graphicsData.points.slice(); - if(points.length < PIXI.WebGLGraphics.stencilBufferLimit)return; + if(points.length < 6)return; // get first and last point.. figure out the middle! var indices = webGLData.indices; @@ -809,7 +809,7 @@ PIXI.WebGLGraphics.buildPoly = function(graphicsData, webGLData) { var points = graphicsData.points; - if(points.length < PIXI.WebGLGraphics.stencilBufferLimit)return; + if(points.length < 6)return; // get first and last point.. figure out the middle! var verts = webGLData.points; var indices = webGLData.indices;