diff --git a/src/main.rs b/src/main.rs index bb830ed..ec17262 100644 --- a/src/main.rs +++ b/src/main.rs @@ -311,9 +311,7 @@ impl VulkanApp { fn setup_debug_messenger(&mut self) -> Result<(), String> { if !ENABLE_VALIDATION_LAYERS { - return Err(String::from( - "Cannot setup debug messenger if validation layers is not enabled!", - )); + return Ok(()); } if self.vk_instance.is_null() {