0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-17 21:19:35 +00:00
Files
termux-packages/packages/vulkan-tools/0002-do-not-search-KHR_display-automatically-on-Termux.patch
Kevin Williams 6fdaaa6cd6 bump(main/vulkan-tools): 1.4.323
Signed-off-by: Kevin Williams <admin@utermux.dev>
2025-07-26 09:39:15 +08:00

33 lines
1.2 KiB
Diff

https://github.com/termux/termux-packages/issues/22542
--- a/cube/cube.c
+++ b/cube/cube.c
@@ -4009,7 +4009,11 @@
#endif
#if defined(VK_USE_PLATFORM_DISPLAY_KHR)
if (!strcmp(VK_KHR_DISPLAY_EXTENSION_NAME, instance_extensions[i].extensionName) &&
+#ifdef __TERMUX__
+ (demo->wsi_platform == WSI_PLATFORM_DISPLAY)) {
+#else
(demo->wsi_platform == WSI_PLATFORM_AUTO || demo->wsi_platform == WSI_PLATFORM_DISPLAY)) {
+#endif
platformSurfaceExtFound = true;
demo->extension_names[demo->enabled_extension_count++] = VK_KHR_DISPLAY_EXTENSION_NAME;
}
diff --git a/cube/cube.cpp b/cube/cube.cpp
index 6c4f9b05..e488f2ef 100644
--- a/cube/cube.cpp
+++ b/cube/cube.cpp
@@ -1666,7 +1666,11 @@
#endif
#if defined(VK_USE_PLATFORM_DISPLAY_KHR)
else if (!strcmp(VK_KHR_DISPLAY_EXTENSION_NAME, extension.extensionName) &&
+#ifdef __TERMUX__
+ (wsi_platform == WsiPlatform::display)) {
+#else
(wsi_platform == WsiPlatform::auto_ || wsi_platform == WsiPlatform::display)) {
+#endif
platformSurfaceExtFound = 1;
enabled_instance_extensions.push_back(VK_KHR_DISPLAY_EXTENSION_NAME);
}