Matteo Bruni : wined3d: Optimize scanning for changed state in wined3d_stateblock_capture().