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; }