aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2015-05-15 15:09:35 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-06-17 19:47:02 -0600
commiteddcf1d2462c477f2b1004333adb459d0c2554ce (patch)
tree9ab140682db7e8f54271de28d401915c28bbe2e6 /layers/draw_state.cpp
parentd8107d14e2619740c5ca276ce8fe06cf584b2d9b (diff)
downloadusermoji-eddcf1d2462c477f2b1004333adb459d0c2554ce.tar.xz
misc: Loader and Layers move device chain activation to CreateDevice
Diffstat (limited to 'layers/draw_state.cpp')
-rwxr-xr-xlayers/draw_state.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index 09bb3ee2..e8039402 100755
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -1491,7 +1491,7 @@ static void initDrawState(void)
VK_LAYER_EXPORT VkResult VKAPI vkCreateDevice(VkPhysicalDevice gpu, const VkDeviceCreateInfo* pCreateInfo, VkDevice* pDevice)
{
- VkResult result = nextTable.CreateDevice(gpu, pCreateInfo, pDevice);
+ VkResult result = nextInstanceTable.CreateDevice(gpu, pCreateInfo, pDevice);
return result;
}
@@ -1572,7 +1572,7 @@ VK_LAYER_EXPORT VkResult VKAPI vkEnumerateLayers(VkPhysicalDevice gpu, size_t ma
{
pCurObj = (VkBaseLayerObject *) gpu;
loader_platform_thread_once(&g_initOnce, initDrawState);
- VkResult result = nextTable.EnumerateLayers(gpu, maxStringSize, pLayerCount, pOutLayers, pReserved);
+ VkResult result = nextInstanceTable.EnumerateLayers(gpu, maxStringSize, pLayerCount, pOutLayers, pReserved);
return result;
} else {
if (pLayerCount == NULL || pOutLayers == NULL || pOutLayers[0] == NULL)