I know that OpenGL ES 2.0 standard threw out all the methods that can achieve the same results only keeping one. This is the result why static pipeline is removed from the specification and only dynamic pipeline is present. But it is strange that I use this code and it works:
glColor3f(0, 1, 1);//white glBegin(GL_LINE_LOOP); glVertex2f(lower.x, lower.y); glVertex2f(upper.x, lower.y); glVertex2f(upper.x, upper.y); glVertex2f(lower.x, upper.y); glEnd();
This API function I use belong to static pipeline, right as I draw without using a shader. BTW I do this is cocos2d-x 3.5 that is based on OpenGL ES 2.0.