Implemented Viewport, Scissor, and ColorMask states.