Skip to content

Commit

Permalink
fix: Don't use GRGlInterface.Create to determine OpenGL availability
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed May 31, 2022
1 parent b1e50af commit 503d60b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uno.UI.Runtime.Skia.Gtk/OpenGLRenderSurface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public static bool IsSupported
{
var ctx = new Silk.NET.Core.Contexts.DefaultNativeContext(new GLCoreLibraryNameContainer().GetLibraryName());

using var glContext = GRGlInterface.Create();
var isAvailable = ctx.TryGetProcAddress("glGetString", out _);

return glContext != null && !isMacOs;
return isAvailable && !isMacOs;
}
catch(Exception e)
{
Expand Down

0 comments on commit 503d60b

Please sign in to comment.