Fixed OpenGL crash with particles
OpenGL performance imrpvements

Reduce redundant state changes