diff --git a/cocos/3d/CCSprite3D.cpp b/cocos/3d/CCSprite3D.cpp index 9e299aad30..5de394fac0 100644 --- a/cocos/3d/CCSprite3D.cpp +++ b/cocos/3d/CCSprite3D.cpp @@ -161,7 +161,6 @@ Sprite3D::Sprite3D() Sprite3D::~Sprite3D() { - _glProgramStates.clear(); _meshes.clear(); _meshVertexDatas.clear(); CC_SAFE_RELEASE_NULL(_skeleton); @@ -171,7 +170,6 @@ Sprite3D::~Sprite3D() bool Sprite3D::initWithFile(const std::string &path) { _meshes.clear(); - _glProgramStates.clear(); _meshVertexDatas.clear(); CC_SAFE_RELEASE_NULL(_skeleton); removeAllAttachNode(); @@ -323,7 +321,6 @@ void Sprite3D::genGLProgramState() offset += meshattribute.attribSizeBytes; } - _glProgramStates.pushBack(programstate); glProgramestates[mesh] = programstate; } diff --git a/cocos/3d/CCSprite3D.h b/cocos/3d/CCSprite3D.h index 1c2b77e90b..ad3679d975 100644 --- a/cocos/3d/CCSprite3D.h +++ b/cocos/3d/CCSprite3D.h @@ -161,9 +161,7 @@ protected: BlendFunc _blend; - //since 3.3 Vector _meshes; - Vector _glProgramStates; mutable AABB _aabb; // cache current aabb mutable Mat4 _nodeToWorldTransform; // cache the matrix