mirror of
https://github.com/libretro/RetroArch
synced 2025-02-24 18:39:59 +00:00
(Vulkan) Some C89_BUILD fixes
This commit is contained in:
parent
493b8fdef8
commit
af89df2b82
@ -2382,9 +2382,9 @@ static bool vulkan_frame(void *data, const void *frame,
|
||||
}
|
||||
|
||||
{
|
||||
VkDescriptorSet set;
|
||||
|
||||
set = vulkan_descriptor_manager_alloc(
|
||||
VkWriteDescriptorSet write;
|
||||
VkDescriptorImageInfo image_info;
|
||||
VkDescriptorSet set = vulkan_descriptor_manager_alloc(
|
||||
vk->context->device,
|
||||
&vk->chain->descriptor_manager);
|
||||
|
||||
@ -2395,9 +2395,6 @@ static bool vulkan_frame(void *data, const void *frame,
|
||||
0,
|
||||
vk->hdr.ubo.size);
|
||||
|
||||
VkWriteDescriptorSet write;
|
||||
VkDescriptorImageInfo image_info;
|
||||
|
||||
image_info.sampler = vk->samplers.nearest;
|
||||
image_info.imageView = vk->main_buffer.view;
|
||||
image_info.imageLayout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
@ -2657,6 +2654,8 @@ static bool vulkan_frame(void *data, const void *frame,
|
||||
|
||||
if (vk->context->hdr_enable)
|
||||
{
|
||||
struct vk_image* img;
|
||||
|
||||
#ifdef HAVE_THREADS
|
||||
slock_lock(vk->context->queue_lock);
|
||||
#endif
|
||||
@ -2664,8 +2663,7 @@ static bool vulkan_frame(void *data, const void *frame,
|
||||
#ifdef HAVE_THREADS
|
||||
slock_unlock(vk->context->queue_lock);
|
||||
#endif
|
||||
|
||||
struct vk_image* img = &vk->main_buffer;
|
||||
img = &vk->main_buffer;
|
||||
|
||||
if (img->framebuffer)
|
||||
vkDestroyFramebuffer(vk->context->device, img->framebuffer, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user