mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Allow blend func to be bypassed.
This commit is contained in:
parent
10b5318921
commit
626a734940
@ -130,7 +130,7 @@ public class TwoColorPolygonBatch {
|
|||||||
mesh.setVertices(vertices, 0, vertexIndex);
|
mesh.setVertices(vertices, 0, vertexIndex);
|
||||||
mesh.setIndices(triangles, 0, triangleIndex);
|
mesh.setIndices(triangles, 0, triangleIndex);
|
||||||
Gdx.gl.glEnable(GL20.GL_BLEND);
|
Gdx.gl.glEnable(GL20.GL_BLEND);
|
||||||
Gdx.gl.glBlendFunc(blendSrcFunc, blendDstFunc);
|
if (blendSrcFunc != -1) Gdx.gl.glBlendFunc(blendSrcFunc, blendDstFunc);
|
||||||
mesh.render(shader, GL20.GL_TRIANGLES, 0, triangleIndex);
|
mesh.render(shader, GL20.GL_TRIANGLES, 0, triangleIndex);
|
||||||
|
|
||||||
vertexIndex = 0;
|
vertexIndex = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user