aboutsummaryrefslogtreecommitdiff
path: root/layers/param_checker.cpp
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2015-04-04 14:52:07 -0600
committerChia-I Wu <olv@lunarg.com>2015-04-16 17:33:29 +0800
commitab46b3609d75079ae5aedba8d7a04e666eab19dd (patch)
tree402fe078662793a962db536313ebe48c55250417 /layers/param_checker.cpp
parent3d98fec8d8c5b9a1e9b45c32ba50ca4ab651754c (diff)
downloadusermoji-ab46b3609d75079ae5aedba8d7a04e666eab19dd.tar.xz
misc: Add create_info struct to CreateInstance()
Allows extnesion or layer enablement at CreateInstance Khronos Bug 13637
Diffstat (limited to 'layers/param_checker.cpp')
-rw-r--r--layers/param_checker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/layers/param_checker.cpp b/layers/param_checker.cpp
index 6da0f0c5..ebfe65fc 100644
--- a/layers/param_checker.cpp
+++ b/layers/param_checker.cpp
@@ -123,10 +123,10 @@ void PostCreateInstance(XGL_RESULT result, XGL_INSTANCE* pInstance)
}
}
-XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateInstance(const XGL_APPLICATION_INFO* pAppInfo, const XGL_ALLOC_CALLBACKS* pAllocCb, XGL_INSTANCE* pInstance)
+XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateInstance(const XGL_INSTANCE_CREATE_INFO* pCreateInfo, XGL_INSTANCE* pInstance)
{
- PreCreateInstance(pAppInfo, pAllocCb);
- XGL_RESULT result = nextTable.CreateInstance(pAppInfo, pAllocCb, pInstance);
+ PreCreateInstance(pCreateInfo->pAppInfo, pCreateInfo->pAllocCb);
+ XGL_RESULT result = nextTable.CreateInstance(pCreateInfo, pInstance);
PostCreateInstance(result, pInstance);
return result;
}