Skip to content

Commit

Permalink
Backends: GLFW: Fixed unused variable warning for empty assert macro. (
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Aug 22, 2021
1 parent 47fb332 commit 6bd447c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backends/imgui_impl_glfw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,7 @@ static int ImGui_ImplGlfw_CreateVkSurface(ImGuiViewport* viewport, ImU64 vk_inst
{
ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData();
ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData;
IM_UNUSED(bd);
IM_ASSERT(bd->ClientApi == GlfwClientApi_Vulkan);
VkResult err = glfwCreateWindowSurface((VkInstance)vk_instance, vd->Window, (const VkAllocationCallbacks*)vk_allocator, (VkSurfaceKHR*)out_vk_surface);
return (int)err;
Expand Down

0 comments on commit 6bd447c

Please sign in to comment.