From 39cc03173b14b186b63f53523afbcfe979ac49d8 Mon Sep 17 00:00:00 2001 From: yangxiao Date: Fri, 22 Aug 2014 14:43:48 +0800 Subject: [PATCH] remove unused variable --- cocos/3d/CCSprite3D.cpp | 3 --- cocos/3d/CCSprite3D.h | 2 -- 2 files changed, 5 deletions(-) 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