diff options
-rw-r--r-- | src/gpu/vk/GrVkExtensions.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/gpu/vk/GrVkExtensions.cpp b/src/gpu/vk/GrVkExtensions.cpp index 1fe6515d86..e4768d95c9 100644 --- a/src/gpu/vk/GrVkExtensions.cpp +++ b/src/gpu/vk/GrVkExtensions.cpp @@ -89,9 +89,7 @@ bool GrVkExtensions::initInstance(uint32_t specVersion) { return false; } for (uint32_t i = 0; i < extensionCount; ++i) { - if (nonPatchVersion <= remove_patch_version(extensions[i].specVersion)) { - fInstanceExtensionStrings->push_back() = extensions[i].extensionName; - } + fInstanceExtensionStrings->push_back() = extensions[i].extensionName; } delete [] extensions; // sort so we can search @@ -116,8 +114,7 @@ bool GrVkExtensions::initInstance(uint32_t specVersion) { } for (uint32_t i = 0; i < extensionCount; ++i) { // if not already in the list, add it - if (nonPatchVersion <= remove_patch_version(extensions[i].specVersion) && - find_string(*fInstanceExtensionStrings, extensions[i].extensionName) < 0) { + if (find_string(*fInstanceExtensionStrings, extensions[i].extensionName) < 0) { fInstanceExtensionStrings->push_back() = extensions[i].extensionName; SkTQSort(&fInstanceExtensionStrings->front(), &fInstanceExtensionStrings->back(), cmp); @@ -183,9 +180,7 @@ bool GrVkExtensions::initDevice(uint32_t specVersion, VkInstance inst, VkPhysica return false; } for (uint32_t i = 0; i < extensionCount; ++i) { - if (nonPatchVersion <= remove_patch_version(extensions[i].specVersion)) { - fDeviceExtensionStrings->push_back() = extensions[i].extensionName; - } + fDeviceExtensionStrings->push_back() = extensions[i].extensionName; } delete[] extensions; if (!fDeviceExtensionStrings->empty()) { @@ -212,8 +207,7 @@ bool GrVkExtensions::initDevice(uint32_t specVersion, VkInstance inst, VkPhysica } for (uint32_t i = 0; i < extensionCount; ++i) { // if not already in the list, add it - if (nonPatchVersion <= remove_patch_version(extensions[i].specVersion) && - find_string(*fDeviceExtensionStrings, extensions[i].extensionName) < 0) { + if (find_string(*fDeviceExtensionStrings, extensions[i].extensionName) < 0) { fDeviceExtensionStrings->push_back() = extensions[i].extensionName; SkTQSort(&fDeviceExtensionStrings->front(), &fDeviceExtensionStrings->back(), cmp); } |