diff --git a/spine-ts/spine-webgl/src/PolygonBatcher.ts b/spine-ts/spine-webgl/src/PolygonBatcher.ts index 1af0f0a31..921b1a098 100644 --- a/spine-ts/spine-webgl/src/PolygonBatcher.ts +++ b/spine-ts/spine-webgl/src/PolygonBatcher.ts @@ -72,6 +72,7 @@ export class PolygonBatcher implements Disposable { } setBlendMode (srcColorBlend: number, srcAlphaBlend: number, dstBlend: number) { + if (this.srcColorBlend == srcColorBlend && this.srcAlphaBlend == srcAlphaBlend && this.dstBlend == dstBlend) return; this.srcColorBlend = srcColorBlend; this.srcAlphaBlend = srcAlphaBlend; this.dstBlend = dstBlend; diff --git a/spine-ts/spine-webgl/tests/test-drawcalls.html b/spine-ts/spine-webgl/tests/test-drawcalls.html new file mode 100644 index 000000000..5b66ee5a8 --- /dev/null +++ b/spine-ts/spine-webgl/tests/test-drawcalls.html @@ -0,0 +1,106 @@ + + + + + + +
test
+ + + + \ No newline at end of file