Skip to content

Commit

Permalink
fixed GCC compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ec- committed Jan 17, 2025
1 parent 6b99936 commit 9d8d9a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/renderervk/vk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1675,14 +1675,14 @@ static qboolean vk_create_device( VkPhysicalDevice physical_device, int device_i
device_desc.pEnabledFeatures = &features;

#ifdef _DEBUG
pNextPtr = &device_desc.pNext;
pNextPtr = (const void **)&device_desc.pNext;

if ( timelineSemaphore ) {
*pNextPtr = &timeline_semaphore;
timeline_semaphore.pNext = NULL;
timeline_semaphore.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES;
timeline_semaphore.timelineSemaphore = VK_TRUE;
pNextPtr = &timeline_semaphore.pNext;
pNextPtr = (const void **)&timeline_semaphore.pNext;
}

if ( memoryModel ) {
Expand All @@ -1692,7 +1692,7 @@ static qboolean vk_create_device( VkPhysicalDevice physical_device, int device_i
memory_model.vulkanMemoryModel = VK_TRUE;
memory_model.vulkanMemoryModelAvailabilityVisibilityChains = VK_FALSE;
memory_model.vulkanMemoryModelDeviceScope = VK_TRUE;
pNextPtr = &memory_model.pNext;
pNextPtr = (const void **)&memory_model.pNext;
}

if ( devAddrFeat ) {
Expand Down

0 comments on commit 9d8d9a0

Please sign in to comment.