Skip to content

Commit 47ec3d3

Browse files
committed
Remove texture setters
1 parent 3caa51a commit 47ec3d3

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/gameobjects/graphics/GraphicsWebGLRenderer.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ var GraphicsWebGLRenderer = function (renderer, src, camera, parentMatrix)
130130
case Commands.FILL_PATH:
131131
for (pathIndex = 0; pathIndex < path.length; pathIndex++)
132132
{
133-
pipeline.setTexture2D(currentTexture, src);
133+
// pipeline.setTexture2D(currentTexture, src);
134134

135135
pipeline.batchFillPath(
136136
path[pathIndex].points,
@@ -143,7 +143,7 @@ var GraphicsWebGLRenderer = function (renderer, src, camera, parentMatrix)
143143
case Commands.STROKE_PATH:
144144
for (pathIndex = 0; pathIndex < path.length; pathIndex++)
145145
{
146-
pipeline.setTexture2D(currentTexture, src);
146+
// pipeline.setTexture2D(currentTexture, src);
147147

148148
pipeline.batchStrokePath(
149149
path[pathIndex].points,
@@ -257,7 +257,7 @@ var GraphicsWebGLRenderer = function (renderer, src, camera, parentMatrix)
257257
break;
258258

259259
case Commands.FILL_RECT:
260-
pipeline.setTexture2D(currentTexture, src);
260+
// pipeline.setTexture2D(currentTexture, src);
261261
pipeline.batchFillRect(
262262
commands[++cmdIndex],
263263
commands[++cmdIndex],
@@ -269,7 +269,7 @@ var GraphicsWebGLRenderer = function (renderer, src, camera, parentMatrix)
269269
break;
270270

271271
case Commands.FILL_TRIANGLE:
272-
pipeline.setTexture2D(currentTexture, src);
272+
// pipeline.setTexture2D(currentTexture, src);
273273
pipeline.batchFillTriangle(
274274
commands[++cmdIndex],
275275
commands[++cmdIndex],
@@ -283,7 +283,7 @@ var GraphicsWebGLRenderer = function (renderer, src, camera, parentMatrix)
283283
break;
284284

285285
case Commands.STROKE_TRIANGLE:
286-
pipeline.setTexture2D(currentTexture, src);
286+
// pipeline.setTexture2D(currentTexture, src);
287287
pipeline.batchStrokeTriangle(
288288
commands[++cmdIndex],
289289
commands[++cmdIndex],
@@ -338,6 +338,7 @@ var GraphicsWebGLRenderer = function (renderer, src, camera, parentMatrix)
338338
currentMatrix.rotate(commands[++cmdIndex]);
339339
break;
340340

341+
/*
341342
case Commands.SET_TEXTURE:
342343
var frame = commands[++cmdIndex];
343344
var mode = commands[++cmdIndex];
@@ -355,6 +356,7 @@ var GraphicsWebGLRenderer = function (renderer, src, camera, parentMatrix)
355356
pipeline.tintEffect = 2;
356357
currentTexture = renderer.tempTextures[0];
357358
break;
359+
*/
358360
}
359361
}
360362
};

0 commit comments

Comments
 (0)