Browse Source

[cocos2dx] Fix merged code.

Mario Zechner 2 years ago
parent
commit
1c6de8ff47
1 changed files with 2 additions and 2 deletions
  1. 2 2
      spine-cocos2dx/spine-cocos2dx/src/spine/SkeletonRenderer.cpp

+ 2 - 2
spine-cocos2dx/spine-cocos2dx/src/spine/SkeletonRenderer.cpp

@@ -284,7 +284,7 @@ namespace spine {
 
 
 			if (slot->getAttachment()->getRTTI().isExactly(RegionAttachment::rtti)) {
 			if (slot->getAttachment()->getRTTI().isExactly(RegionAttachment::rtti)) {
 				RegionAttachment *attachment = static_cast<RegionAttachment *>(slot->getAttachment());
 				RegionAttachment *attachment = static_cast<RegionAttachment *>(slot->getAttachment());
-                texture = (Texture2D*)((AtlasRegion*)attachment->getRegion())->page->getRendererObject();
+                texture = (Texture2D*)((AtlasRegion*)attachment->getRegion())->page->texture;
 
 
 				float *dstTriangleVertices = nullptr;
 				float *dstTriangleVertices = nullptr;
 				int dstStride = 0;// in floats
 				int dstStride = 0;// in floats
@@ -322,7 +322,7 @@ namespace spine {
 				color = attachment->getColor();
 				color = attachment->getColor();
 			} else if (slot->getAttachment()->getRTTI().isExactly(MeshAttachment::rtti)) {
 			} else if (slot->getAttachment()->getRTTI().isExactly(MeshAttachment::rtti)) {
 				MeshAttachment *attachment = (MeshAttachment *) slot->getAttachment();
 				MeshAttachment *attachment = (MeshAttachment *) slot->getAttachment();
-                texture = (Texture2D*)((AtlasRegion*)attachment->getRegion())->page->getRendererObject();
+                texture = (Texture2D*)((AtlasRegion*)attachment->getRegion())->page->texture;
 
 
 				float *dstTriangleVertices = nullptr;
 				float *dstTriangleVertices = nullptr;
 				int dstStride = 0;// in floats
 				int dstStride = 0;// in floats