Disable present queue when present unavailable.
This commit is contained in:
@@ -650,7 +650,9 @@ void RendererVK::initGraphicsContext(SDL_Window* window) {
|
||||
// Initialize device-specific function pointers
|
||||
VULKAN_HPP_DEFAULT_DISPATCHER.init(device.get());
|
||||
|
||||
presentQueue = device->getQueue(presentQueueFamily, 0);
|
||||
if (presentQueueFamily != VK_QUEUE_FAMILY_IGNORED) {
|
||||
presentQueue = device->getQueue(presentQueueFamily, 0);
|
||||
}
|
||||
graphicsQueue = device->getQueue(graphicsQueueFamily, 0);
|
||||
computeQueue = device->getQueue(computeQueueFamily, 0);
|
||||
transferQueue = device->getQueue(transferQueueFamily, 0);
|
||||
|
||||
Reference in New Issue
Block a user