Matteo Bruni : wined3d: Cleanup stateblock state before enumerating resources.