fix triple buffer re-detection and doublebuffer behavior (on nvidia at least)

Review Request #125659 - Created Oct. 16, 2015 and submitted

Thomas Lübking
346275, 351700
fredrik, graesslin
commit #1
re-detect triple-buffering after compositor resume
and also hint the proper blocking condition (if turning
off swap control)
The detection vars are global, but the swap control requirement
is not preserved, so the detection must re-occur.
Alternatively (and better) the swap control should be saved
and re-applied, but there's trouble on initial detection

commit #2
wait for GL after swapping
otherwise at least on the nvidia blob the swapping
doesn't block even for double buffering

Martin Flöser
Thomas Lübking
Martin Flöser
Thomas Lübking
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 8bea96d7018d02dff9462326ca9456f48e9fe9fb by Thomas Lübking to branch master.