Skip to content

Commit e792667

Browse files
committed
The Graphics WebGL Renderer will now default to pathOpen = true. This fixes issues under WebGL where, for example, adding an arc and calling strokePath, without first calling beginPath will no longer cause rendering artefacts when WebGL tries to close the path with a single tri.
1 parent 559127a commit e792667

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/graphics/GraphicsWebGLRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ var GraphicsWebGLRenderer = function (renderer, src, camera, parentMatrix)
9696

9797
var path = [];
9898
var pathIndex = 0;
99-
var pathOpen = false;
99+
var pathOpen = true;
100100
var lastPath = null;
101101

102102
var getTint = Utils.getTintAppendFloatAlpha;

0 commit comments

Comments
 (0)