Merge pull request #56210 from 1ace/vk-engine-version

drivers/vulkan: limit pEngineName to only the engine name, without its version
This commit is contained in:
Rémi Verschelde 2021-12-24 11:29:06 +01:00 committed by GitHub
commit 28174d531b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -628,14 +628,12 @@ Error VulkanContext::_create_physical_device() {
}
CharString cs = ProjectSettings::get_singleton()->get("application/config/name").operator String().utf8();
String name = "GodotEngine " + String(VERSION_FULL_NAME);
CharString namecs = name.utf8();
const VkApplicationInfo app = {
/*sType*/ VK_STRUCTURE_TYPE_APPLICATION_INFO,
/*pNext*/ nullptr,
/*pApplicationName*/ cs.get_data(),
/*applicationVersion*/ 0,
/*pEngineName*/ namecs.get_data(),
/*pEngineName*/ VERSION_NAME,
/*engineVersion*/ VK_MAKE_VERSION(VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH),
/*apiVersion*/ VK_MAKE_VERSION(vulkan_major, vulkan_minor, 0)
};