[KMS] VSync off causes a crash; force VSync on until fixed

VSync off leads to buffer starvation and a crash in
Egl.SwapBuffers. We need to understand why and fix that
before we can disable vsync.
This commit is contained in:
thefiddler 2014-07-17 11:59:38 +02:00
parent 4f037c882a
commit 20747664f4

View file

@ -72,7 +72,11 @@ namespace OpenTK.Platform.Linux
if (is_flip_queued) if (is_flip_queued)
{ {
WaitFlip(SwapInterval > 0); // Todo: if we don't wait for the page flip,
// we drop all rendering buffers and get a crash
// in Egl.SwapBuffers(). We need to fix that
// before we can disable vsync.
WaitFlip(true); // WaitFlip(SwapInterval > 0)
if (is_flip_queued) if (is_flip_queued)
{ {
Debug.Print("[KMS] Dropping frame"); Debug.Print("[KMS] Dropping frame");