Merge pull request #1799 from pandamicro/master

Fix spine breaking batch rendering issue
This commit is contained in:
pandamicro
2017-07-11 18:16:14 +08:00
committed by GitHub
+1 -1
View File
@@ -111,7 +111,7 @@ proto.uploadData = function (f32buffer, ui32buffer, vertexDataOffset){
// if data changed or the vertices will be overflow
if ((cachedVertices + vertCount) * 6 > f32buffer.length ||
textureAtlas !== regionTextureAtlas ||
textureAtlas.texture.getRealTexture() !== regionTextureAtlas.texture.getRealTexture() ||
blendMode !== slot.data.blendMode) {
// render the cached data
cc.renderer._batchRendering();