vulkan: Fix Wayland uninitialised registry
authorDaniel Stone <daniels@collabora.com>
Fri, 28 Apr 2017 14:49:47 +0000 (16:49 +0200)
committerDaniel Stone <daniels@collabora.com>
Fri, 19 May 2017 08:34:52 +0000 (09:34 +0100)
commitd9a8bba7f44f7042f0bbd659d0ed342236423dd3
treeb9dc72effc366970ef29a1ba95d084ad488effb4
parent688ddb85c8c3357d8e1e9d360c74cd728b128d98
vulkan: Fix Wayland uninitialised registry

Untangle the exit cleanup paths so we don't try to use the registry
variable before it's been initialised.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable@lists.freedesktop.org
src/vulkan/wsi/wsi_common_wayland.c