issue #1564: Removing one unnecessary line in CCRenderTexture::visit.

This commit is contained in:
James Chen 2012-11-22 09:52:50 +08:00
parent add23eecda
commit e1f7c0bab6
1 changed files with 6 additions and 7 deletions

View File

@ -394,9 +394,9 @@ void CCRenderTexture::beginWithClear(float r, float g, float b, float a, float d
this->begin(); this->begin();
// save clear color // save clear color
GLfloat clearColor[4]; GLfloat clearColor[4] = {0.0f};
GLfloat depthClearValue; GLfloat depthClearValue = 0.0f;
int stencilClearValue; int stencilClearValue = 0;
if (flags & GL_COLOR_BUFFER_BIT) if (flags & GL_COLOR_BUFFER_BIT)
{ {
@ -512,7 +512,6 @@ void CCRenderTexture::visit()
if (m_pGrid && m_pGrid->isActive()) if (m_pGrid && m_pGrid->isActive())
{ {
m_pGrid->afterDraw(this); m_pGrid->afterDraw(this);
transformAncestors();
} }
kmGLPopMatrix(); kmGLPopMatrix();
@ -528,9 +527,9 @@ void CCRenderTexture::draw()
if (m_uClearFlags) if (m_uClearFlags)
{ {
GLfloat oldClearColor[4]; GLfloat oldClearColor[4] = {0.0f};
GLfloat oldDepthClearValue; GLfloat oldDepthClearValue = 0.0f;
GLint oldStencilClearValue; GLint oldStencilClearValue = 0;
// backup and set // backup and set
if (m_uClearFlags & GL_COLOR_BUFFER_BIT) if (m_uClearFlags & GL_COLOR_BUFFER_BIT)