summaryrefslogtreecommitdiff
path: root/games-strategy/warzone2100/files/warzone-vulkan.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2021-12-19 14:30:57 +0000
committerV3n3RiX <venerix@koprulu.sector>2021-12-19 14:30:57 +0000
commit43e5c605b9628aa112d3779b944c69199f25d0cd (patch)
tree693b0c6f4d38ce0d2ba8a6d329cdfd5b2c78726a /games-strategy/warzone2100/files/warzone-vulkan.patch
parent8b0ed1961f42c2236d9c876a38381d58e7ef74ec (diff)
games-strategy/warzone2100 : attempt to fix vulkan build
Diffstat (limited to 'games-strategy/warzone2100/files/warzone-vulkan.patch')
-rw-r--r--games-strategy/warzone2100/files/warzone-vulkan.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/games-strategy/warzone2100/files/warzone-vulkan.patch b/games-strategy/warzone2100/files/warzone-vulkan.patch
new file mode 100644
index 00000000..08b3ef7e
--- /dev/null
+++ b/games-strategy/warzone2100/files/warzone-vulkan.patch
@@ -0,0 +1,40 @@
+diff --git a/lib/ivis_opengl/gfx_api_vk.cpp b/lib/ivis_opengl/gfx_api_vk.cpp
+index 594d127f70..419b8a7644 100644
+--- a/lib/ivis_opengl/gfx_api_vk.cpp
++++ b/lib/ivis_opengl/gfx_api_vk.cpp
+@@ -477,7 +477,7 @@ void BlockBufferAllocator::allocateNewBlock(uint32_t minimumSize)
+ if (result != vk::Result::eSuccess)
+ {
+ // Failed to allocate memory!
+- throwResultException( result, "vmaCreateBuffer" );
++ vk::throwResultException( result, "vmaCreateBuffer" );
+ }
+
+ if (autoMap)
+@@ -1304,7 +1304,7 @@ VkPSO::VkPSO(vk::Device _dev,
+ object = std::move(result.value);
+ break;
+ default:
+- throwResultException(result.result, "createGraphicsPipeline");
++ vk::throwResultException(result.result, "createGraphicsPipeline");
+ }
+ }
+
+@@ -1368,7 +1368,7 @@ void VkBuf::allocateBufferObject(const std::size_t& size)
+ if (result != vk::Result::eSuccess)
+ {
+ // Failed to allocate memory!
+- throwResultException( result, "vmaCreateBuffer" );
++ vk::throwResultException( result, "vmaCreateBuffer" );
+ }
+
+ buffer_size = size;
+@@ -1486,7 +1486,7 @@ VkTexture::VkTexture(const VkRoot& root, const std::size_t& mipmap_count, const
+ if (result != vk::Result::eSuccess)
+ {
+ // Failed to allocate memory!
+- throwResultException( result, "vmaCreateImage" );
++ vk::throwResultException( result, "vmaCreateImage" );
+ }
+
+ const auto imageViewCreateInfo = vk::ImageViewCreateInfo()