[PATCH 2/5] wined3d: Optimize scanning for changed state in wined3d_stateblock_apply().