fix some invalid accesses
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
26a5ea91ba
commit
336468cc31
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue