Henri Verbeet : wined3d: Check subresources for NULL during texture cleanup .