mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-08 23:25:40 +12:00
Disable present queue when present unavailable.
This commit is contained in:
parent
bf3917f074
commit
a36ee0025f
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue