Linux compile fixes

This commit is contained in:
baldurk
2015-10-09 14:50:10 +02:00
parent ac44765bd7
commit ff6b5faa70
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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;