mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-10 04:25:28 +00:00
Moving the LockSurface after waiting for the page flip stops the rendering glitches on Linux/KMS.
This commit is contained in:
parent
f08d210ba3
commit
612b86bd5a
|
@ -67,9 +67,6 @@ namespace OpenTK.Platform.Linux
|
||||||
{
|
{
|
||||||
base.SwapBuffers();
|
base.SwapBuffers();
|
||||||
|
|
||||||
bo_next = LockSurface();
|
|
||||||
int fb = GetFramebuffer(bo_next);
|
|
||||||
|
|
||||||
if (is_flip_queued)
|
if (is_flip_queued)
|
||||||
{
|
{
|
||||||
// Todo: if we don't wait for the page flip,
|
// 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);
|
QueueFlip(fb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue