From 633ab61b4d426a1fb906f0575f4774a93263942b Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Mon, 23 Dec 2019 11:50:39 +0300 Subject: [PATCH] Fixed eglWaitNative usage --- src/Avalonia.OpenGL/EglGlPlatformSurface.cs | 4 ++-- src/Avalonia.OpenGL/EglInterface.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Avalonia.OpenGL/EglGlPlatformSurface.cs b/src/Avalonia.OpenGL/EglGlPlatformSurface.cs index 2bb2e4e65e..ad5808c22a 100644 --- a/src/Avalonia.OpenGL/EglGlPlatformSurface.cs +++ b/src/Avalonia.OpenGL/EglGlPlatformSurface.cs @@ -61,7 +61,7 @@ namespace Avalonia.OpenGL var restoreContext = _context.MakeCurrent(_glSurface); _display.EglInterface.WaitClient(); _display.EglInterface.WaitGL(); - _display.EglInterface.WaitNative(); + _display.EglInterface.WaitNative(EglConsts.EGL_CORE_NATIVE_ENGINE); return new Session(_display, _context, _glSurface, _info, l, restoreContext); } @@ -101,7 +101,7 @@ namespace Avalonia.OpenGL _glSurface.SwapBuffers(); _display.EglInterface.WaitClient(); _display.EglInterface.WaitGL(); - _display.EglInterface.WaitNative(); + _display.EglInterface.WaitNative(EglConsts.EGL_CORE_NATIVE_ENGINE); _restoreContext.Dispose(); _lock.Dispose(); } diff --git a/src/Avalonia.OpenGL/EglInterface.cs b/src/Avalonia.OpenGL/EglInterface.cs index cdc5f38f33..7597ccc48b 100644 --- a/src/Avalonia.OpenGL/EglInterface.cs +++ b/src/Avalonia.OpenGL/EglInterface.cs @@ -136,9 +136,9 @@ namespace Avalonia.OpenGL [GlEntryPoint("eglWaitClient")] public EglWaitGL WaitClient { get; } - public delegate bool EglWaitNative(); + public delegate bool EglWaitNative(int engine); [GlEntryPoint("eglWaitNative")] - public EglWaitGL WaitNative { get; } + public EglWaitNative WaitNative { get; } public delegate IntPtr EglQueryString(IntPtr display, int i);