Added polygon offset and polygon mode states to GL_state. Fixed sorter. Misc bugs.