Replies: 1 comment
-
Does SKGLElement work for you with the dlls from #2968? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Im using .Net 4.8, i cant update due to the size of the project, and i noticed that the handling of the GPU Rendering just looks for the .NET Version instead of if the missing libSkiaSharp.dll, which is addressed in the Issue: https://github.com/mono/SkiaSharp/issues/3111
I have no Problem with copying the .dll by hand or updating the packages.config to PackageReference.
Any reason for that hardcoded exclusion of lesser versions than 6.0?
Also the issue is closed and in the newest release its also mentioned that its fixed, but apparently not?
Issue: https://github.com/mono/SkiaSharp/pull/3112 says that its fixed.
private void InitializeElement()
{
if (LiveCharts.UseGPU)
{
#if NET6_0_OR_GREATER
// workaround #250115
Content = _skiaGlElement = new SKGLElement();
_skiaGlElement.PaintSurface += OnPaintGlSurface;
#else
throw new PlatformNotSupportedException(
"GPU rendering is only supported in .NET 6.0 or greater, " +
"because #3111 needs to be fixed.");
#endif
}
else
{
Content = _skiaElement = new SKElement();
_skiaElement.PaintSurface += OnPaintSurface;
}
}``
Beta Was this translation helpful? Give feedback.
All reactions