vulkaninfo: Add more portability macro guards
authorCharles Giessen <charles@lunarg.com>
Thu, 1 Oct 2020 21:16:34 +0000 (15:16 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Thu, 1 Oct 2020 23:34:12 +0000 (17:34 -0600)
Previous commit didn't contain all that were necessary.

Change-Id: I0983beb06d95dd316ece5b7ba52754e4ad180cbd

vulkaninfo/vulkaninfo.cpp

index dba8658..d771bf8 100644 (file)
@@ -1008,7 +1008,9 @@ int main(int argc, char **argv) {
                 }
             } else if (p->Type() == OutputType::json) {
                 if (portability_json) {
+#if defined(VK_ENABLE_BETA_EXTENSIONS)
                     DumpPortability(*p.get(), *gpus.at(selected_gpu).get());
+#endif  // defined(VK_ENABLE_BETA_EXTENSIONS)
                 } else if (json_output) {
                     DumpLayers(*p.get(), instance.global_layers, gpus);
                     DumpGpuJson(*p.get(), *gpus.at(selected_gpu).get());