initialize findResult
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

pull/22/head
cosmonaut 2022-08-30 13:16:04 -07:00
parent 223a9d6593
commit 7b10e7cc9f
1 changed files with 2 additions and 1 deletions

View File

@ -2524,7 +2524,7 @@ static uint8_t VULKAN_INTERNAL_FindAvailableBufferMemory(
VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR, VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR,
&dedicatedRequirements &dedicatedRequirements
}; };
uint8_t findResult; uint8_t findResult = 0;
while (VULKAN_INTERNAL_FindBufferMemoryRequirements( while (VULKAN_INTERNAL_FindBufferMemoryRequirements(
renderer, renderer,
@ -2543,6 +2543,7 @@ static uint8_t VULKAN_INTERNAL_FindAvailableBufferMemory(
pOffset, pOffset,
pSize pSize
); );
if (findResult == 1) if (findResult == 1)
{ {
break; break;