Browse Source

Revert "restore file."

This reverts commit 758ddafad8.
tmp-winuicomp_with_manual_fbo
Dan Walmsley 6 years ago
parent
commit
e68ce5643e
  1. 8
      src/Avalonia.OpenGL/Angle/AngleEglInterface.cs

8
src/Avalonia.OpenGL/Angle/AngleEglInterface.cs

@ -7,8 +7,8 @@ namespace Avalonia.OpenGL.Angle
{ {
public class AngleEglInterface : EglInterface public class AngleEglInterface : EglInterface
{ {
[DllImport("libegl.dll", CharSet = CharSet.Ansi)] [DllImport("libglesv2.dll", CharSet = CharSet.Ansi)]
static extern IntPtr eglGetProcAddress(string proc); static extern IntPtr EGL_GetProcAddress(string proc);
public AngleEglInterface() : base(LoadAngle()) public AngleEglInterface() : base(LoadAngle())
{ {
@ -20,10 +20,10 @@ namespace Avalonia.OpenGL.Angle
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
throw new PlatformNotSupportedException(); throw new PlatformNotSupportedException();
{ {
var disp = eglGetProcAddress("eglGetPlatformDisplayEXT"); var disp = EGL_GetProcAddress("eglGetPlatformDisplayEXT");
if (disp == IntPtr.Zero) if (disp == IntPtr.Zero)
throw new OpenGlException("libegl.dll doesn't have eglGetPlatformDisplayEXT entry point"); throw new OpenGlException("libegl.dll doesn't have eglGetPlatformDisplayEXT entry point");
return eglGetProcAddress; return EGL_GetProcAddress;
} }
} }

Loading…
Cancel
Save