Fixed SIGFPE with unordered map.
Changed "RenderState& state" of Rendermode to "Renderstate state".