diff options
author | Richard Grenville <[email protected]> | 2014-03-26 22:27:25 +0800 |
---|---|---|
committer | Richard Grenville <[email protected]> | 2014-03-26 22:27:25 +0800 |
commit | 6e4f45f875ccc0f29b93b0b36ef34dfdc8f8394a (patch) | |
tree | ed79627e683c14f9e6fc4dbe3395b05a53c6c2d5 /opengl.c | |
parent | 224dcd29cc383a61c85140897424b07f905f2c95 (diff) | |
download | tdebase-6e4f45f875ccc0f29b93b0b36ef34dfdc8f8394a.tar.gz tdebase-6e4f45f875ccc0f29b93b0b36ef34dfdc8f8394a.zip |
Misc: Add --xrender-sync{,-fence} as configuration file option
- Add --xrender-sync{,-fence} as configuration file option.
- Quit on encountering invalid opacity rule.
- Other small changes.
Diffstat (limited to 'opengl.c')
-rw-r--r-- | opengl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,11 +16,11 @@ xr_glx_sync(session_t *ps, Drawable d, XSyncFence *pfence) { if (*pfence) { // GLsync sync = ps->glFenceSyncProc(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); GLsync sync = ps->glImportSyncEXT(GL_SYNC_X11_FENCE_EXT, *pfence, 0); - XSync(ps->dpy, False); - glx_check_err(ps); /* GLenum ret = ps->glClientWaitSyncProc(sync, GL_SYNC_FLUSH_COMMANDS_BIT, 1000); assert(GL_CONDITION_SATISFIED == ret); */ + XSyncTriggerFence(ps->dpy, *pfence); + XFlush(ps->dpy); ps->glWaitSyncProc(sync, 0, GL_TIMEOUT_IGNORED); // ps->glDeleteSyncProc(sync); // XSyncResetFence(ps->dpy, *pfence); |