Removed most usage of glPixelStorei

This becasue some of the parameters are not implemented in OpenGL ES 1.1 and 2.0.