initialize findResult
parent
223a9d6593
commit
7b10e7cc9f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue