Browse Source

Fixed eglWaitNative usage

pull/3386/head
Nikita Tsukanov 7 years ago
parent
commit
633ab61b4d
  1. 4
      src/Avalonia.OpenGL/EglGlPlatformSurface.cs
  2. 4
      src/Avalonia.OpenGL/EglInterface.cs

4
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();
}

4
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);

Loading…
Cancel
Save