changing the way deviceCount is obtained for compatibality

This commit is contained in:
unexploredtest 2021-04-16 17:22:17 +04:30
parent 5ae634837f
commit 629c6e38ce

View file

@ -290,7 +290,7 @@ Manager::createDevice(const std::vector<uint32_t>& familyQueueIndices,
// Getting an integer that says how many vuklan devices we have
uint32_t deviceCount = 0;
vkEnumeratePhysicalDevices(*(this->mInstance), &deviceCount, nullptr);
this->mInstance->enumeratePhysicalDevices(&deviceCount, nullptr);
// This means there are no devices at all
if (deviceCount == 0) {