Added GLState. Getting setGLState function set up.