We should also probably check that the returned pointer isn't NULL, in case the sync extension is not available :). (I don't know opengl that well, maybe it's always available).
Comment 5Alexander Chehovsky
2011-11-27 07:29:14 EST
Created attachment 3015[details]
Revised patch (v3)
Added a NULL check.
Actually, this extension is really widely available, but just to be safe.
Created attachment 3013 [details] Patch To make GL compositing tear-free. Patch attached.
Created attachment 3014 [details] Revised patch Indeed, let's not store it in struct. Attached revised patch.
Created attachment 3015 [details] Revised patch (v3) Added a NULL check. Actually, this extension is really widely available, but just to be safe.