Skip to content

Commit 87796a9

Browse files
committed
Fix #7029. Grid renders lineWidth correctly in WebGL mode.
1 parent 478c965 commit 87796a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gameobjects/shape/grid/GridWebGLRenderer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,14 @@ var GridWebGLRenderer = function (renderer, src, camera, parentMatrix)
178178
{
179179
var x1 = x * cellWidth;
180180

181-
pipeline.batchLine(x1, 0, x1, height, 1, 1, 1, 0, false);
181+
pipeline.batchLine(x1, 0, x1, height, src.lineWidth, src.lineWidth, 1, 0, false);
182182
}
183183

184184
for (y = 1; y < gridHeight; y++)
185185
{
186186
var y1 = y * cellHeight;
187187

188-
pipeline.batchLine(0, y1, width, y1, 1, 1, 1, 0, false);
188+
pipeline.batchLine(0, y1, width, y1, src.lineWidth, src.lineWidth, 1, 0, false);
189189
}
190190
}
191191

0 commit comments

Comments
 (0)