Fix VkDeviceQueueCreateInfo warning
This commit is contained in:
parent
4a93bea962
commit
f35f402edf
@ -687,8 +687,11 @@ void GEVulkanDriver::createDevice()
|
|||||||
queue_create_info.pQueuePriorities = &queue_priority;
|
queue_create_info.pQueuePriorities = &queue_priority;
|
||||||
queue_create_infos.push_back(queue_create_info);
|
queue_create_infos.push_back(queue_create_info);
|
||||||
|
|
||||||
|
if (m_present_family != m_graphics_family)
|
||||||
|
{
|
||||||
queue_create_info.queueFamilyIndex = m_present_family;
|
queue_create_info.queueFamilyIndex = m_present_family;
|
||||||
queue_create_infos.push_back(queue_create_info);
|
queue_create_infos.push_back(queue_create_info);
|
||||||
|
}
|
||||||
|
|
||||||
VkPhysicalDeviceFeatures device_features = {};
|
VkPhysicalDeviceFeatures device_features = {};
|
||||||
if (m_features.samplerAnisotropy == VK_TRUE)
|
if (m_features.samplerAnisotropy == VK_TRUE)
|
||||||
|
Loading…
Reference in New Issue
Block a user