From 68a9fa1d2ed238d66e2cbe55089553b520cebeac Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sat, 2 Mar 2019 23:01:36 +1100 Subject: [PATCH] tools/hello: explicitly load the icd provider --- tools/hello.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/hello.cpp b/tools/hello.cpp index 76fbdd5..53cebc8 100644 --- a/tools/hello.cpp +++ b/tools/hello.cpp @@ -293,9 +293,16 @@ public: /////////////////////////////////////////////////////////////////////////////// +#include +#include + int main (void) { + cruft::vk::icd::vendor v (cruft::vk::icd::enumerate ()[0]); + cruft::vk::icd::i_table = &v.itable; + cruft::vk::icd::v_table = &v.vtable; + LOG_INFO ("intialising glfw"); glfw::instance glfw_instance;