diff options
| author | Chia-I Wu <olv@lunarg.com> | 2014-11-07 14:30:34 +0800 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2014-11-21 16:49:39 -0700 |
| commit | bb57f646f4ac300adbc0ffc2b6c5ab4a79fbcaa5 (patch) | |
| tree | dba6cb3f8a8f938a140fd6fe763ff8f4ad8875c9 /include | |
| parent | 087cfc24c89413967611af33e436137b9db191b8 (diff) | |
| download | usermoji-bb57f646f4ac300adbc0ffc2b6c5ab4a79fbcaa5.tar.xz | |
demos: add a fence for presentation
After xglWsiX11QueuePresent(), the image is scheduled for copying. We should
not render to it until the copying is done. Otherwise, depending on how the
DDX works, flickering or GPU hangs may be expected.
Add and wait on the fence before submitting the command buffer. This ensures
the DDX is done with the image. Set async to true to run as fast as
possible.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
