Don't send empty paths to the GPU.
Replace deprecated (un)wrap calls.