Sebastian Lackner : wined3d: Shutdown CS thread before deallocating resources.