[PATCH 1/5] wined3d: Cleanup stateblock state before enumerating resources.