From 58909e4582b0e8efb96a74188366f15021ee58ca Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Sun, 16 Jan 2022 13:05:50 +0100 Subject: [PATCH] [dxvk] Fix MSVC build. --- src/dxvk/dxvk_barrier.h | 2 +- src/dxvk/dxvk_framebuffer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dxvk/dxvk_barrier.h b/src/dxvk/dxvk_barrier.h index f3629fa9..f7a7713d 100644 --- a/src/dxvk/dxvk_barrier.h +++ b/src/dxvk/dxvk_barrier.h @@ -354,7 +354,7 @@ namespace dxvk { std::vector m_hashMap; static size_t computeHash(K key) { - return size_t(reinterpret_cast(key)); + return size_t(uint64_t(key)); } size_t computeIndex(K key) const { diff --git a/src/dxvk/dxvk_framebuffer.h b/src/dxvk/dxvk_framebuffer.h index eaeb62c1..b55e6e5f 100644 --- a/src/dxvk/dxvk_framebuffer.h +++ b/src/dxvk/dxvk_framebuffer.h @@ -65,7 +65,7 @@ namespace dxvk { state.add(depthView); for (uint32_t i = 0; i < MaxNumRenderTargets; i++) state.add(colorViews[i]); - state.add(reinterpret_cast(renderPass)); + state.add(uint64_t(renderPass)); return state; }