test gles2 render state and fix bugs
delete usless codes