caopengllayersink: correctly use the sync meta across multiple contexts
authorMatthew Waters <matthew@centricular.com>
Tue, 19 May 2015 14:28:52 +0000 (00:28 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:01 +0000 (19:32 +0000)
commit56bd10a392b3ca79461a48f0df9f8aec70c1f12a
tree353e59e7cadadfa718c140f197cf1dcfee8a3aaf
parentd6c4f850eaeb6df55201d8c413ff52e599d38b22
caopengllayersink: correctly use the sync meta across multiple contexts

1. Set the sync point after the (possible) upload has occured
2. Wait in the correct GL context (the draw context)

Note: We don't add the GL sync meta to the input buffer as it's not
writable and a copy would be expensive.

Similar to the change with the same name for glimagesink
ext/gl/caopengllayersink.h
ext/gl/caopengllayersink.m