mirror of https://github.com/axmolengine/axmol.git
remove unused variable
This commit is contained in:
parent
70661b0ff4
commit
39cc03173b
|
@ -161,7 +161,6 @@ Sprite3D::Sprite3D()
|
||||||
|
|
||||||
Sprite3D::~Sprite3D()
|
Sprite3D::~Sprite3D()
|
||||||
{
|
{
|
||||||
_glProgramStates.clear();
|
|
||||||
_meshes.clear();
|
_meshes.clear();
|
||||||
_meshVertexDatas.clear();
|
_meshVertexDatas.clear();
|
||||||
CC_SAFE_RELEASE_NULL(_skeleton);
|
CC_SAFE_RELEASE_NULL(_skeleton);
|
||||||
|
@ -171,7 +170,6 @@ Sprite3D::~Sprite3D()
|
||||||
bool Sprite3D::initWithFile(const std::string &path)
|
bool Sprite3D::initWithFile(const std::string &path)
|
||||||
{
|
{
|
||||||
_meshes.clear();
|
_meshes.clear();
|
||||||
_glProgramStates.clear();
|
|
||||||
_meshVertexDatas.clear();
|
_meshVertexDatas.clear();
|
||||||
CC_SAFE_RELEASE_NULL(_skeleton);
|
CC_SAFE_RELEASE_NULL(_skeleton);
|
||||||
removeAllAttachNode();
|
removeAllAttachNode();
|
||||||
|
@ -323,7 +321,6 @@ void Sprite3D::genGLProgramState()
|
||||||
offset += meshattribute.attribSizeBytes;
|
offset += meshattribute.attribSizeBytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
_glProgramStates.pushBack(programstate);
|
|
||||||
glProgramestates[mesh] = programstate;
|
glProgramestates[mesh] = programstate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -161,9 +161,7 @@ protected:
|
||||||
|
|
||||||
BlendFunc _blend;
|
BlendFunc _blend;
|
||||||
|
|
||||||
//since 3.3
|
|
||||||
Vector<Mesh*> _meshes;
|
Vector<Mesh*> _meshes;
|
||||||
Vector<GLProgramState*> _glProgramStates;
|
|
||||||
|
|
||||||
mutable AABB _aabb; // cache current aabb
|
mutable AABB _aabb; // cache current aabb
|
||||||
mutable Mat4 _nodeToWorldTransform; // cache the matrix
|
mutable Mat4 _nodeToWorldTransform; // cache the matrix
|
||||||
|
|
Loading…
Reference in New Issue