tools/hello: explicitly load the icd provider

This commit is contained in:
Danny Robson 2019-03-02 23:01:36 +11:00
parent 8e115d3c77
commit 68a9fa1d2e

View File

@ -293,9 +293,16 @@ public:
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include <cruft/vk/icd/vtable.hpp>
#include <cruft/vk/icd/vendor.hpp>
int int
main (void) 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"); LOG_INFO ("intialising glfw");
glfw::instance glfw_instance; glfw::instance glfw_instance;