From e82dc9872f8219cef73784c10a33f614337eaab6 Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Fri, 11 Dec 2015 10:45:00 -0700 Subject: loader: Fix bug where dynamic dispatch for layer dev exts needs to come later GetDeviceProcAddr dynamic dispatch init was happening too soon before layer device extension was enabled. Fix it. --- loader/loader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'loader/loader.c') diff --git a/loader/loader.c b/loader/loader.c index f4ca551b..bc020ee9 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -3506,12 +3506,12 @@ VKAPI_ATTR VkResult VKAPI_CALL loader_CreateDevice( } loader_activate_device_layers(inst, dev, *pDevice); - /* initialize any device extension dispatch entry's from the instance list*/ - loader_init_dispatch_dev_ext(inst, dev); - /* finally can call down the chain */ res = dev->loader_dispatch.core_dispatch.CreateDevice(physicalDevice, pCreateInfo, pAllocator, pDevice); + /* initialize any device extension dispatch entry's from the instance list*/ + loader_init_dispatch_dev_ext(inst, dev); + /* initialize WSI device extensions as part of core dispatch since loader has * dedicated trampoline code for these*/ loader_init_device_extension_dispatch_table(&dev->loader_dispatch, -- cgit v1.2.3