diff --git a/include/Mw/Widget/Vulkan.h b/include/Mw/Widget/Vulkan.h index 4f8a5e3..1b008e5 100644 --- a/include/Mw/Widget/Vulkan.h +++ b/include/Mw/Widget/Vulkan.h @@ -68,7 +68,7 @@ typedef struct _MwVulkanConfig { * @warning This must be called before MwCreateWidget. * @warning The configuration provided will be used for future initializations of the Vulkan widget (unless it's changed) */ -MWDECL void MwVulkanConfigure(MwVulkanConfig cfg); +MWDECL void MwVulkanConfigure(MwVulkanConfig* cfg); /*! * @brief Field that can be gotten from Vulkan. diff --git a/milsko.xml b/milsko.xml index cca24fc..76d4755 100644 --- a/milsko.xml +++ b/milsko.xml @@ -38,6 +38,11 @@ + + + + + +
+ + + + + + + + + + +
diff --git a/src/widget/vulkan.c b/src/widget/vulkan.c index 817644c..e836ac3 100644 --- a/src/widget/vulkan.c +++ b/src/widget/vulkan.c @@ -489,8 +489,8 @@ static int vulkan_devices_setup(MwWidget handle, vulkan_t* o) { return 0; } -void MwVulkanConfigure(MwVulkanConfig cfg) { - vulkan_config = cfg; +void MwVulkanConfigure(MwVulkanConfig* cfg) { + vulkan_config = *cfg; } void MwVulkanEnableExtension(const char* name) { @@ -595,7 +595,7 @@ void MwVulkanEnableLayer(const char* ext_name) { (void)ext_name; } -void MwVulkanConfigure(MwVulkanConfig cfg) { +void MwVulkanConfigure(MwVulkanConfig* cfg) { (void)cfg; }