Fix overflow detection.
Fixed doc typo
Merge pull request #643 from AnalyticalGraphicsInc/commandPassState

Picking improvements
Merge remote-tracking branch 'origin/master' into renderstate