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)
committerMatthew Waters <matthew@centricular.com>
Tue, 19 May 2015 14:36:48 +0000 (00:36 +1000)
commit057130b93d63c1b9014e55a74e5dfa073cc7b4ee
tree34937a47edcc94ed7928985e919e1375b446e2ad
parent49c4d0850d804c983c0cbd698e7deff0fad162bf
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