danwalmsley
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
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; |
|
|
|
} |
|
|
|
} |
|
|
|
|