From c55c64c0a7d086a3298d00c8af63ad6f7495ddee Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Fri, 6 Apr 2018 15:55:59 -0600 Subject: macos: Remove update_and_draw from cube demos Adopting this change from MoltenVK. The wait and update steps are no longer needed. Calling just demo_draw now works as well on MVK as it does on other platforms. --- demos/cube.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'demos/cube.cpp') diff --git a/demos/cube.cpp b/demos/cube.cpp index 55964376..68645c90 100644 --- a/demos/cube.cpp +++ b/demos/cube.cpp @@ -2984,14 +2984,6 @@ static void demo_main(struct Demo &demo, void *view) { demo.spin_angle = 0.4f; } -// Global function invoked from NS or UI views and controllers on each demo frame -static void demo_update_and_draw(struct Demo &demo) { - // Wait for work to finish before updating MVP. - vkDeviceWaitIdle(demo.device); - demo.update_data_buffer(); - demo.draw(); -} - #else #error "Platform not supported" #endif -- cgit v1.2.3