Pass GL state to commands procs
Fix line endings in lib.rs