i dont think i need this??
This commit is contained in:
parent
651f339537
commit
01cdd533c5
|
@ -97,14 +97,11 @@ class HelloTriangleApplication {
|
|||
// Retrieve extensions using custom function
|
||||
std::vector<const char*> extensions = getRequiredExtensions();
|
||||
|
||||
vk::DebugUtilsMessengerCreateInfoEXT debugCreateInfo {};
|
||||
if (enableValidationLayers) {
|
||||
createInfo.setEnabledLayerCount(static_cast<uint32_t>(validationLayers.size()))
|
||||
.setPpEnabledLayerNames(validationLayers.data());
|
||||
|
||||
createInfo.setPNext(&debugCreateInfo);
|
||||
} else {
|
||||
createInfo.setEnabledLayerCount(0).setPNext(nullptr);
|
||||
createInfo.setEnabledLayerCount(0);
|
||||
}
|
||||
|
||||
// Enable the portability extension and set flags
|
||||
|
|
Loading…
Reference in a new issue