From 915ec4acc26745dbdc5ced43bef56ebfcfbd9f15 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 21 Aug 2022 19:09:35 +0000 Subject: [PATCH] [dxvk] Remove WIN32 check for handle type in DxvkSharedHandleInfo The initial implementation if-deffed this, but it doesn't need to be. --- src/dxvk/dxvk_memory.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/dxvk/dxvk_memory.h b/src/dxvk/dxvk_memory.h index 795dd74d6..5b8e829dc 100644 --- a/src/dxvk/dxvk_memory.h +++ b/src/dxvk/dxvk_memory.h @@ -34,12 +34,9 @@ namespace dxvk { DxvkSharedHandleMode mode = DxvkSharedHandleMode::None; VkExternalMemoryHandleTypeFlagBits type = VK_EXTERNAL_MEMORY_HANDLE_TYPE_FLAG_BITS_MAX_ENUM; union { -#ifdef _WIN32 - HANDLE handle = INVALID_HANDLE_VALUE; -#else - // Placeholder for other handle types, such as FD - void *dummy; -#endif + // When we want to implement this on non-Windows platforms, + // we could add a `int fd` here, etc. + HANDLE handle = INVALID_HANDLE_VALUE; }; };