Henri Verbeet : wined3d: Check buffer-> map_ptr to determine if the buffer object is mapped.