Added patch from https://bugs.freedesktop.org/show_bug.cgi?id=73762