Browse Source

formatting.

pull/4644/head
Dan Walmsley 6 years ago
parent
commit
c48c82f171
  1. 12
      src/Avalonia.OpenGL/Angle/AngleEglInterface.cs

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

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

Loading…
Cancel
Save