misc fixes
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
e88580ae64
commit
75128355ec
|
@ -3544,11 +3544,14 @@ static void VULKAN_INTERNAL_DestroyRenderTarget(
|
|||
NULL
|
||||
);
|
||||
|
||||
if (renderTarget->msaaTex != NULL)
|
||||
{
|
||||
VULKAN_INTERNAL_DestroyTexture(
|
||||
renderer,
|
||||
renderTarget->msaaTex
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
static void VULKAN_INTERNAL_DestroyBuffer(
|
||||
VulkanRenderer* renderer,
|
||||
|
@ -5706,7 +5709,7 @@ static uint32_t VULKAN_INTERNAL_GetRenderTargetIndex(
|
|||
return
|
||||
(level * texture->depth * texture->layerCount) +
|
||||
(layer * texture->depth) +
|
||||
texture->depth;
|
||||
depth;
|
||||
}
|
||||
|
||||
static VulkanRenderTarget* VULKAN_INTERNAL_FetchRenderTarget(
|
||||
|
@ -5802,9 +5805,7 @@ static VkRenderPass VULKAN_INTERNAL_CreateRenderPass(
|
|||
|
||||
attachmentDescriptions[attachmentDescriptionCount].flags = 0;
|
||||
attachmentDescriptions[attachmentDescriptionCount].format = texture->format;
|
||||
attachmentDescriptions[attachmentDescriptionCount].samples = RefreshToVK_SampleCount[
|
||||
texture->sampleCount
|
||||
];
|
||||
attachmentDescriptions[attachmentDescriptionCount].samples = texture->sampleCount;
|
||||
attachmentDescriptions[attachmentDescriptionCount].loadOp = RefreshToVK_LoadOp[
|
||||
colorAttachmentInfos[i].loadOp
|
||||
];
|
||||
|
@ -5877,9 +5878,8 @@ static VkRenderPass VULKAN_INTERNAL_CreateRenderPass(
|
|||
|
||||
attachmentDescriptions[attachmentDescriptionCount].flags = 0;
|
||||
attachmentDescriptions[attachmentDescriptionCount].format = texture->format;
|
||||
attachmentDescriptions[attachmentDescriptionCount].samples = RefreshToVK_SampleCount[
|
||||
texture->sampleCount
|
||||
];
|
||||
attachmentDescriptions[attachmentDescriptionCount].samples = texture->sampleCount;
|
||||
|
||||
attachmentDescriptions[attachmentDescriptionCount].loadOp = RefreshToVK_LoadOp[
|
||||
depthStencilAttachmentInfo->loadOp
|
||||
];
|
||||
|
@ -5996,9 +5996,8 @@ static VkRenderPass VULKAN_INTERNAL_CreateTransientRenderPass(
|
|||
attachmentDescriptions[attachmentDescriptionCount].format = RefreshToVK_SurfaceFormat[
|
||||
attachmentDescription.format
|
||||
];
|
||||
attachmentDescriptions[attachmentDescriptionCount].samples = RefreshToVK_SampleCount[
|
||||
sampleCount
|
||||
];
|
||||
attachmentDescriptions[attachmentDescriptionCount].samples = sampleCount;
|
||||
|
||||
attachmentDescriptions[attachmentDescriptionCount].loadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
|
||||
attachmentDescriptions[attachmentDescriptionCount].storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;
|
||||
attachmentDescriptions[attachmentDescriptionCount].stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
|
||||
|
@ -6061,9 +6060,8 @@ static VkRenderPass VULKAN_INTERNAL_CreateTransientRenderPass(
|
|||
renderer,
|
||||
attachmentInfo.depthStencilFormat
|
||||
);
|
||||
attachmentDescriptions[attachmentDescriptionCount].samples = RefreshToVK_SampleCount[
|
||||
sampleCount
|
||||
];
|
||||
attachmentDescriptions[attachmentDescriptionCount].samples = sampleCount;
|
||||
|
||||
attachmentDescriptions[attachmentDescriptionCount].loadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
|
||||
attachmentDescriptions[attachmentDescriptionCount].storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;
|
||||
attachmentDescriptions[attachmentDescriptionCount].stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
|
||||
|
@ -6844,6 +6842,7 @@ static Refresh_Texture* VULKAN_CreateTexture(
|
|||
container->textureHandles = SDL_malloc(
|
||||
container->textureCapacity * sizeof(VulkanTextureHandle*)
|
||||
);
|
||||
container->textureHandles[0] = container->activeTextureHandle;
|
||||
|
||||
return (Refresh_Texture*) container;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue