]> O.S.I.I.S - jp/vkhelpers.git/commitdiff
debug
authorj-p <jp_bruyere@hotmail.com>
Mon, 15 Nov 2021 16:22:07 +0000 (17:22 +0100)
committerj-p <jp_bruyere@hotmail.com>
Mon, 15 Nov 2021 16:22:07 +0000 (17:22 +0100)
src/vkhelpers.c

index 941f7c5b7d7c41c9a8119cc90942344a43d6db0c..a9237c27c66feca3f2ad43ee36fc5dd829173cee 100644 (file)
@@ -276,7 +276,7 @@ void dumpLayerExts () {
        assert (vkEnumerateInstanceLayerProperties(&instance_layer_count, NULL)==VK_SUCCESS);
        if (instance_layer_count == 0)
                return;
-       VkLayerProperties vk_props[instance_layer_count];
+       VkLayerProperties* vk_props = (VkLayerProperties*)malloc (instance_layer_count * sizeof(VkLayerProperties));
        assert (vkEnumerateInstanceLayerProperties(&instance_layer_count, vk_props)==VK_SUCCESS);
 
        for (uint32_t i = 0; i < instance_layer_count; i++) {
@@ -285,4 +285,5 @@ void dumpLayerExts () {
                if (res) return res;
                info.instance_layer_properties.push_back(layer_props);*/
        }
+       free(vk_props);
 }