mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Linux compile fixes
This commit is contained in:
@@ -68,6 +68,8 @@ data/spv/checkerboardfs.spvo \
|
||||
data/spv/texdisplayfs.spvo \
|
||||
data/spv/textvs.spvo \
|
||||
data/spv/textfs.spvo \
|
||||
data/spv/genericvs.spvo \
|
||||
data/spv/genericfs.spvo \
|
||||
data/sourcecodepro.ttfo
|
||||
|
||||
.PHONY: all
|
||||
|
||||
@@ -64,7 +64,7 @@ VkResult WrappedVulkan::vkGetPhysicalDeviceProperties(
|
||||
VkResult ret = ObjDisp(physicalDevice)->GetPhysicalDeviceProperties(Unwrap(physicalDevice), pProperties);
|
||||
|
||||
// assign a random UUID, so that we get SPIR-V instead of cached pipeline data.
|
||||
srand((unsigned int)pProperties);
|
||||
srand((unsigned int)(uintptr_t)pProperties);
|
||||
for(int i=0; i < VK_UUID_LENGTH; i++) pProperties->pipelineCacheUUID[i] = (rand()>>6)&0xff;
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user