Skip to content

Commit

Permalink
fix C90 error №2
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4E69676874466F78 committed Dec 2, 2021
1 parent 758de30 commit 236339a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ref_vk/vk_framectl.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,11 @@ static uint32_t clamp_u32(uint32_t v, uint32_t min, uint32_t max) {
static qboolean createSwapchain( void )
{
VkSwapchainCreateInfoKHR *create_info = &g_frame.create_info;
qboolean hdr_output = CVAR_TO_BOOL( vk_hdr );
const uint32_t prev_num_images = g_frame.num_images;
// recreating swapchain means invalidating any previous frames
g_frame.last_frame_index = -1;

qboolean hdr_output = CVAR_TO_BOOL( vk_hdr );

XVK_CHECK(vkGetPhysicalDeviceSurfaceCapabilitiesKHR(vk_core.physical_device.device, vk_core.surface.surface, &g_frame.surface_caps));

vk_frame.width = g_frame.surface_caps.currentExtent.width;
Expand Down

0 comments on commit 236339a

Please sign in to comment.