Browse Source

make code more readable.

pull/4644/head
danwalmsley 6 years ago
committed by GitHub
parent
commit
70d062ba39
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/Avalonia.OpenGL/Angle/AngleEglInterface.cs

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

@ -18,11 +18,18 @@ namespace Avalonia.OpenGL.Angle
static Func<string, IntPtr> LoadAngle()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
throw new PlatformNotSupportedException();
}
else
{
var disp = eglGetProcAddress("eglGetPlatformDisplayEXT");
if (disp == IntPtr.Zero)
{
throw new OpenGlException("libegl.dll doesn't have eglGetPlatformDisplayEXT entry point");
}
return eglGetProcAddress;
}
}

Loading…
Cancel
Save