fix some invalid accesses
continuous-integration/drone/push Build is passing Details

pull/15/head
cosmonaut 2022-02-24 21:29:52 -08:00
parent 26a5ea91ba
commit 336468cc31
1 changed files with 3 additions and 1 deletions

View File

@ -2544,7 +2544,7 @@ static void VULKAN_INTERNAL_DestroyRenderTarget(
SDL_LockMutex(renderer->framebufferFetchLock); SDL_LockMutex(renderer->framebufferFetchLock);
/* Remove all associated framebuffers */ /* Remove all associated framebuffers */
for (i = renderer->framebufferHashArray.count; i >= 0; i -= 1) for (i = renderer->framebufferHashArray.count - 1; i >= 0; i -= 1)
{ {
hash = &renderer->framebufferHashArray.elements[i].key; hash = &renderer->framebufferHashArray.elements[i].key;
@ -7336,6 +7336,8 @@ static VkRenderPass VULKAN_INTERNAL_FetchRenderPass(
hash.colorTargetDescriptions[i].storeOp = colorAttachmentInfos[i].storeOp; hash.colorTargetDescriptions[i].storeOp = colorAttachmentInfos[i].storeOp;
} }
hash.colorAttachmentCount = colorAttachmentCount;
if (depthStencilAttachmentInfo == NULL) if (depthStencilAttachmentInfo == NULL)
{ {
hash.depthStencilTargetDescription.loadOp = REFRESH_LOADOP_DONT_CARE; hash.depthStencilTargetDescription.loadOp = REFRESH_LOADOP_DONT_CARE;