mirror of https://github.com/axmolengine/axmol.git
remove unneeded codes
This commit is contained in:
parent
3703c6f73a
commit
951bf1cbfa
|
@ -49,21 +49,18 @@ void QuadCommand::init(float globalOrder, GLuint textureID, GLProgram* shader, B
|
|||
{
|
||||
_globalOrder = globalOrder;
|
||||
|
||||
_textureID = textureID;
|
||||
_blendType = blendType;
|
||||
_shader = shader;
|
||||
|
||||
_quadsCount = quadCount;
|
||||
_quads = quad;
|
||||
|
||||
_mv = mv;
|
||||
|
||||
if( _textureID != _lastTextureID || _blendType.src != _lastBlendType.src || _blendType.dst != _lastBlendType.dst || _shader != _lastShader) {
|
||||
if( _textureID != textureID || _blendType.src != blendType.src || _blendType.dst != blendType.dst || _shader != shader) {
|
||||
|
||||
_textureID = textureID;
|
||||
_blendType = blendType;
|
||||
_shader = shader;
|
||||
|
||||
generateMaterialID();
|
||||
|
||||
_lastShader = _shader;
|
||||
_lastBlendType = _blendType;
|
||||
_lastTextureID = _textureID;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -71,13 +71,10 @@ protected:
|
|||
uint32_t _materialID;
|
||||
|
||||
GLuint _textureID;
|
||||
GLuint _lastTextureID;
|
||||
|
||||
GLProgram* _shader;
|
||||
GLProgram* _lastShader;
|
||||
|
||||
BlendFunc _blendType;
|
||||
BlendFunc _lastBlendType;
|
||||
|
||||
V3F_C4B_T2F_Quad* _quads;
|
||||
ssize_t _quadsCount;
|
||||
|
|
Loading…
Reference in New Issue