CCLayerColor display transparent background will has some strange question.

When i set the CClayerColor’s Opacity property is zero. I found the the CClayerColor display will don’t display the transparent at some time. Is this a bug? I have modified the CCLayerColor’s draw function to fix this issue. But I don’t know whether is a correct method to fix. follow is my modified code…

bool newBlend = false; if( m_tBlendFunc.src != CC_BLEND_SRC || m_tBlendFunc.dst != CC_BLEND_DST ) { newBlend = true; glBlendFunc(m_tBlendFunc.src, m_tBlendFunc.dst); } else if( m_cOpacity != 255 && m_cOpacity != 0) { newBlend = true; glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); } else if( m_cOpacity == 0) { newBlend = true; glBlendFunc(GL_ZERO, GL_DST_ALPHA); }
I found this modify my question has resoved.