mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 11:57:00 +00:00
tabs to space, remove braces
This commit is contained in:
parent
3234f81cb1
commit
4bc6a951fe
@ -747,8 +747,8 @@ bool ImGui_ImplGlfwVulkan_CreateDeviceObjects()
|
|||||||
|
|
||||||
VkDynamicState dynamic_states[2] = { VK_DYNAMIC_STATE_VIEWPORT, VK_DYNAMIC_STATE_SCISSOR };
|
VkDynamicState dynamic_states[2] = { VK_DYNAMIC_STATE_VIEWPORT, VK_DYNAMIC_STATE_SCISSOR };
|
||||||
VkPipelineDynamicStateCreateInfo dynamic_state = {};
|
VkPipelineDynamicStateCreateInfo dynamic_state = {};
|
||||||
dynamic_state.sType = VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO;
|
dynamic_state.sType = VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO;
|
||||||
dynamic_state.dynamicStateCount = 2;
|
dynamic_state.dynamicStateCount = 2;
|
||||||
dynamic_state.pDynamicStates = dynamic_states;
|
dynamic_state.pDynamicStates = dynamic_states;
|
||||||
|
|
||||||
VkGraphicsPipelineCreateInfo info = {};
|
VkGraphicsPipelineCreateInfo info = {};
|
||||||
|
@ -88,14 +88,10 @@ static void resize_vulkan(GLFWwindow* /*window*/, int w, int h)
|
|||||||
VkSurfaceCapabilitiesKHR cap;
|
VkSurfaceCapabilitiesKHR cap;
|
||||||
err = vkGetPhysicalDeviceSurfaceCapabilitiesKHR(g_Gpu, g_Surface, &cap);
|
err = vkGetPhysicalDeviceSurfaceCapabilitiesKHR(g_Gpu, g_Surface, &cap);
|
||||||
check_vk_result(err);
|
check_vk_result(err);
|
||||||
if (cap.maxImageCount > 0)
|
if (cap.maxImageCount > 0)
|
||||||
{
|
info.minImageCount = (cap.minImageCount + 2 < cap.maxImageCount) ? (cap.minImageCount + 2) : cap.maxImageCount;
|
||||||
info.minImageCount = (cap.minImageCount + 2 < cap.maxImageCount) ? (cap.minImageCount + 2) : cap.maxImageCount;
|
else
|
||||||
}
|
info.minImageCount = cap.minImageCount + 2;
|
||||||
else
|
|
||||||
{
|
|
||||||
info.minImageCount = cap.minImageCount + 2;
|
|
||||||
}
|
|
||||||
if (cap.currentExtent.width == 0xffffffff)
|
if (cap.currentExtent.width == 0xffffffff)
|
||||||
{
|
{
|
||||||
fb_width = w;
|
fb_width = w;
|
||||||
|
Loading…
Reference in New Issue
Block a user