diff options
| author | Karl Schultz <karl@lunarg.com> | 2018-04-06 15:55:59 -0600 |
|---|---|---|
| committer | Karl Schultz <karl@lunarg.com> | 2018-04-06 15:55:59 -0600 |
| commit | c55c64c0a7d086a3298d00c8af63ad6f7495ddee (patch) | |
| tree | c1fb22112276c8626f8e6e4af90ca346910894be /demos/cube.cpp | |
| parent | e9b4d6c20c1367238e668be40945b3cfda1652db (diff) | |
| download | usermoji-c55c64c0a7d086a3298d00c8af63ad6f7495ddee.tar.xz | |
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.
Diffstat (limited to 'demos/cube.cpp')
| -rw-r--r-- | demos/cube.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
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 |
