Moving the LockSurface after waiting for the page flip stops the rendering glitches on Linux/KMS.

This commit is contained in:
Malcolm Still 2017-01-11 21:30:33 +00:00
parent f08d210ba3
commit 612b86bd5a

View file

@ -67,9 +67,6 @@ namespace OpenTK.Platform.Linux
{
base.SwapBuffers();
bo_next = LockSurface();
int fb = GetFramebuffer(bo_next);
if (is_flip_queued)
{
// Todo: if we don't wait for the page flip,
@ -84,6 +81,8 @@ namespace OpenTK.Platform.Linux
}
}
bo_next = LockSurface();
int fb = GetFramebuffer(bo_next);
QueueFlip(fb);
}