forked from MoonsideGames/Refresh
fix some invalid accesses
parent
26a5ea91ba
commit
336468cc31
|
@ -2544,7 +2544,7 @@ static void VULKAN_INTERNAL_DestroyRenderTarget(
|
|||
SDL_LockMutex(renderer->framebufferFetchLock);
|
||||
|
||||
/* 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;
|
||||
|
||||
|
@ -7336,6 +7336,8 @@ static VkRenderPass VULKAN_INTERNAL_FetchRenderPass(
|
|||
hash.colorTargetDescriptions[i].storeOp = colorAttachmentInfos[i].storeOp;
|
||||
}
|
||||
|
||||
hash.colorAttachmentCount = colorAttachmentCount;
|
||||
|
||||
if (depthStencilAttachmentInfo == NULL)
|
||||
{
|
||||
hash.depthStencilTargetDescription.loadOp = REFRESH_LOADOP_DONT_CARE;
|
||||
|
|
Loading…
Reference in New Issue