wait for GL after swapping

otherwise at least on the nvidia blob the swapping
doesn't block even for double buffering

REVIEW: 125659
BUG: 346275
CCBUG: 351700
FIXED-IN: 5.5
icc-effect-5.14.5
Thomas Lübking 2015-10-09 18:47:14 +02:00
parent 0788890233
commit 8bea96d701
1 changed files with 4 additions and 0 deletions

View File

@ -649,6 +649,10 @@ void GlxBackend::present()
}
setBlocksForRetrace(result == 'd');
}
} else if (blocksForRetrace()) {
// at least the nvidia blob manages to swap async, ie. return immediately on double
// buffering - what messes our timing calculation and leads to laggy behavior #346275
glXWaitGL();
}
} else {
waitSync();