mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Fix deferred handles to start properly from the upper bits
* INTPTR_MAX may overlap with valid pointers on android
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user