diff --git a/cocos2dx/shaders/CCGLProgram.cpp b/cocos2dx/shaders/CCGLProgram.cpp index 39fcdeced4..3028978620 100644 --- a/cocos2dx/shaders/CCGLProgram.cpp +++ b/cocos2dx/shaders/CCGLProgram.cpp @@ -176,7 +176,7 @@ bool CCGLProgram::link() { glLinkProgram(m_uProgram); -//#if DEBUG +#if DEBUG GLint status; glValidateProgram(m_uProgram); @@ -191,7 +191,7 @@ bool CCGLProgram::link() m_uVertShader = m_uFragShader = m_uProgram = 0; return false; } -//#endif +#endif if (m_uVertShader) glDeleteShader(m_uVertShader);