ToGLStateConverter WIP.