I'm trying to modify my OpenGL project to OpenGL ES 1.x. But there is a function call I can't find any solution for me to replace it.
glPushAttrib(GL_CURRENT_BIT | GL_LIGHTING_BIT | GL_COLOR_BUFFER_BIT | GL_ENABLE_BIT );
I can't find GL_CURRENT_BIT mask and glPushAttrib function in OpenGL ES 1.x.
Simply, I just remove the GL_CURRENT_BIT mask from the glPushAttrib parameters, and the application show the wrong background on the window(I tested it on the OpenGL environment. and the background is a texutre.). Is there any solution for me to replace glPushAttrib(GL_CURRENT_BIT) and let me run the application correctly on the OpenGL or Is there any solution for me to implement glPushAttrib(GL_CURRENT_BIT) which I can run both on OpenGL and OpenGL ES correctly? Thanks!