From ab46b3609d75079ae5aedba8d7a04e666eab19dd Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Sat, 4 Apr 2015 14:52:07 -0600 Subject: misc: Add create_info struct to CreateInstance() Allows extnesion or layer enablement at CreateInstance Khronos Bug 13637 --- layers/param_checker.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'layers/param_checker.cpp') 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; } -- cgit v1.2.3