From 01cdd533c5f3221424dc11c83df7df780e83b52b Mon Sep 17 00:00:00 2001 From: Mars Date: Sun, 29 Sep 2024 23:04:33 -0400 Subject: [PATCH] i dont think i need this?? --- src/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index bd58509..b69803c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -97,14 +97,11 @@ class HelloTriangleApplication { // Retrieve extensions using custom function std::vector extensions = getRequiredExtensions(); - vk::DebugUtilsMessengerCreateInfoEXT debugCreateInfo {}; if (enableValidationLayers) { createInfo.setEnabledLayerCount(static_cast(validationLayers.size())) .setPpEnabledLayerNames(validationLayers.data()); - - createInfo.setPNext(&debugCreateInfo); } else { - createInfo.setEnabledLayerCount(0).setPNext(nullptr); + createInfo.setEnabledLayerCount(0); } // Enable the portability extension and set flags