OpenGL 1 to 2 port on Cocos2d-x 2.0.4 not working

I am trying to port Tiny Seal Tiny Seal Part2 to OpenGL ES 2.0.
I tried that on older version (cocos2d-2.0-rc0a-x-2.0) of cocos2d-x it worked, but when I upgraded to “cocos2d-2.0-x-2.0.4” it stopped working. It shows one edge of terrain on leftmost side, thats it. I tried printing the _hillVertices which looks correct to me. Can anyone help me please?

Here is draw() function-
@

ccGLEnableVertexAttribs(kCCVertexAttribFlag_Position | kCCVertexAttribFlag_Color);
shaderProgram~~>use;
shaderProgram~~>setUniformForModelViewProjectionMatrix();
ccGLBlendFunc(CC_BLEND_SRC, CC_BLEND_DST);
ccGLBindTexture2D(_terrainSprite->getTexture()->getName());
glVertexAttribPointer(kCCVertexAttrib_Position, 2, GL_FLOAT, GL_FALSE, 0, _hillVertices);
glEnableVertexAttribArray(kCCVertexAttrib_Position);
glVertexAttribPointer(kCCVertexAttrib_TexCoords, 2, GL_FLOAT, GL_FALSE, 0, _hillTexCoords);
glEnableVertexAttribArray(kCCVertexAttrib_TexCoords);
glDrawArrays(GL_TRIANGLE_STRIP, 0, (GLsizei)_nHillVertices);

@