[KMS] VSync off causes a crash; force VSync on until fixed
authorthefiddler <stapostol@gmail.com>
Thu, 17 Jul 2014 09:59:38 +0000 (11:59 +0200)
committerthefiddler <stapostol@gmail.com>
Thu, 17 Jul 2014 09:59:38 +0000 (11:59 +0200)
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.

Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs

index 63122f7..f2d5518 100644 (file)
@@ -72,7 +72,11 @@ namespace OpenTK.Platform.Linux
 
             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)
                 {
                     Debug.Print("[KMS] Dropping frame");