Properly enable validation

This commit is contained in:
saschawillems 2016-12-13 20:07:55 +01:00
parent 17e3313b53
commit 65a8043087

View file

@ -683,7 +683,7 @@ VulkanExampleBase::VulkanExampleBase(bool enableValidation, PFN_GetEnabledFeatur
{ {
if (arg == std::string("-validation")) if (arg == std::string("-validation"))
{ {
enableValidation = true; this->enableValidation = true;
} }
if (arg == std::string("-vsync")) if (arg == std::string("-vsync"))
{ {
@ -708,7 +708,7 @@ VulkanExampleBase::VulkanExampleBase(bool enableValidation, PFN_GetEnabledFeatur
#if defined(_WIN32) #if defined(_WIN32)
// Enable console if validation is active // Enable console if validation is active
// Debug message callback will output to it // Debug message callback will output to it
if (enableValidation) if (this->enableValidation)
{ {
setupConsole("VulkanExample"); setupConsole("VulkanExample");
} }