diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2014-11-18 11:28:09 -0700 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2014-12-02 14:44:57 -0700 |
| commit | 1454f3ca70b0f3613a2c83e672d75bf5585df844 (patch) | |
| tree | fbbb17bf6feae3e93ff9595d9c85522854ae772e | |
| parent | 5826c02791b3d412cce4e63f81820b17c4e95686 (diff) | |
| download | usermoji-1454f3ca70b0f3613a2c83e672d75bf5585df844.tar.xz | |
demo/cube: Remove unneeded call
| -rw-r--r-- | demos/cube.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/demos/cube.c b/demos/cube.c index 74478f81..c327363a 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -1189,13 +1189,17 @@ static void demo_run(struct demo *demo) if (event) { demo_handle_event(demo, event); free(event); - } + } else if (!demo->pause){ // Wait for work to finish before updating MVP. xglDeviceWaitIdle(demo->device); demo_update_data_buffer(demo); - demo_draw(demo); + demo_draw(demo); + + // Wait for work to finish before updating MVP. + xglDeviceWaitIdle(demo->device); + } } } |
