diff options
| author | Petr Kraus <petr_kraus@email.cz> | 2018-04-14 14:45:17 +0200 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2018-04-17 15:07:46 -0600 |
| commit | 2f1dbdbfe2b8adac45ff00df12a7bfb308070952 (patch) | |
| tree | 6d3817d58f8ee868eef19a92f8eb23f530fc2329 /demos/cube.cpp | |
| parent | 3d548f222fed040cdeb7f49ab69422f4f66fa64e (diff) | |
| download | usermoji-2f1dbdbfe2b8adac45ff00df12a7bfb308070952.tar.xz | |
demos: Remove undesirable gpu_count assert
to allow the useful error message to be shown instead
Diffstat (limited to 'demos/cube.cpp')
| -rw-r--r-- | demos/cube.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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<vk::PhysicalDevice[]> physical_devices(new vk::PhysicalDevice[gpu_count]); |
