From 2f1dbdbfe2b8adac45ff00df12a7bfb308070952 Mon Sep 17 00:00:00 2001 From: Petr Kraus Date: Sat, 14 Apr 2018 14:45:17 +0200 Subject: demos: Remove undesirable gpu_count assert to allow the useful error message to be shown instead --- demos/cube.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'demos/cube.cpp') diff --git a/demos/cube.cpp b/demos/cube.cpp index ff760893..a7218617 100644 --- a/demos/cube.cpp +++ b/demos/cube.cpp @@ -1217,7 +1217,6 @@ void Demo::init_vk() { uint32_t gpu_count; result = inst.enumeratePhysicalDevices(&gpu_count, nullptr); VERIFY(result == vk::Result::eSuccess); - assert(gpu_count > 0); if (gpu_count > 0) { std::unique_ptr physical_devices(new vk::PhysicalDevice[gpu_count]); -- cgit v1.2.3