Fix spine breaking batch rendering issue

This commit is contained in:
pandamicro
2017-07-11 18:06:39 +08:00
parent 35b73e6365
commit df1825116d
+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();