Fixed bug which cause error to run in opengl es 1.1