Examples: Vulkan: Tweak

This commit is contained in:
omar 2017-12-24 18:49:19 +01:00
parent ce13426a1a
commit 3a4a2bb27c

View File

@ -726,11 +726,7 @@ int main(int, char**)
ImGui::ShowDemoWindow(&show_demo_window); ImGui::ShowDemoWindow(&show_demo_window);
} }
g_ClearValue.color.float32[0] = clear_color.x; memcpy(&g_ClearValue.color.float32[0], &clear_color, 4 * sizeof(float));
g_ClearValue.color.float32[1] = clear_color.y;
g_ClearValue.color.float32[2] = clear_color.z;
g_ClearValue.color.float32[3] = clear_color.w;
frame_begin(); frame_begin();
ImGui_ImplGlfwVulkan_Render(g_CommandBuffer[g_FrameIndex]); ImGui_ImplGlfwVulkan_Render(g_CommandBuffer[g_FrameIndex]);
frame_end(); frame_end();