fixed restore openfl that messed with some native render states
remove safe unoptimisations.
Merge branch 'master' of https://github.com/motion-twin/h3d