Fix deferred handles to start properly from the upper bits

* INTPTR_MAX may overlap with valid pointers on android
This commit is contained in:
baldurk
2024-09-07 12:37:23 +01:00
parent 546490c1a6
commit c7b0c240e2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1222,6 +1222,6 @@ private:
D3D12GpuBufferAllocator m_GPUBufferAllocator;
// dummy handle to use - starting from near highest valid pointer to minimise risk of overlap with real handles
static const uint64_t FirstDummyHandle = INTPTR_MAX - 1024;
static const uint64_t FirstDummyHandle = UINTPTR_MAX - 1024;
uint64_t m_DummyHandle = FirstDummyHandle;
};
+1 -1
View File
@@ -512,7 +512,7 @@ private:
rdcarray<ResourceId> InitialContentResources();
// dummy handle to use - starting from near highest valid pointer to minimise risk of overlap with real handles
static const uint64_t FirstDummyHandle = INTPTR_MAX - 1024;
static const uint64_t FirstDummyHandle = UINTPTR_MAX - 1024;
uint64_t m_DummyHandle = FirstDummyHandle;
WrappedVulkan *m_Core;