1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-13 16:08:50 +01:00

[dxvk] Fix MSVC build.

This commit is contained in:
Georg Lehmann 2022-01-16 13:05:50 +01:00 committed by Joshie
parent c50a650b13
commit 58909e4582
2 changed files with 2 additions and 2 deletions

View File

@ -354,7 +354,7 @@ namespace dxvk {
std::vector<HashEntry> m_hashMap;
static size_t computeHash(K key) {
return size_t(reinterpret_cast<uint64_t>(key));
return size_t(uint64_t(key));
}
size_t computeIndex(K key) const {

View File

@ -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<uint64_t>(renderPass));
state.add(uint64_t(renderPass));
return state;
}