SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
MIT License
4.14k
stars
522
forks
source link
[BUG] SKGLElement gives black screen on Intel integrated graphics #2837
We are trying to use the new SKGLElement WPF element for our project to replace the WinFormsHost solution since it has many issues when integrated in a WPF project. The element works fine on a machine with an Nvidia or AMD graphic card. But, when tested on a machine with integrated Intel graphics only (or the other is disabled), it does not work for all graphics cards. On one of the testing machine that have an Intel HDG 4600 graphics card, we have a newly installed Windows 11 on it.
When using WinFormsHost with SKGLControl, it works just fine.
@mattleibow @gmurray81 do you have any suggestions on how to resolve such issue. Is it a problem with the control or the machine it self? if so, why SKGLControl works fine on this machine? Aren't they both use OpenGL?
Code
e.Surface.Canvas.Clear(new SKColor(255, 0, 0));
Expected Behavior
No response
Actual Behavior
No response
Version of SkiaSharp
3.x (Alpha)
Last Known Good Version of SkiaSharp
2.88.2 (Previous)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
Windows 11
Devices
HP Mini PC with Intel HDG 4600
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Description
We are trying to use the new
SKGLElement
WPF element for our project to replace theWinFormsHost
solution since it has many issues when integrated in a WPF project. The element works fine on a machine with an Nvidia or AMD graphic card. But, when tested on a machine with integrated Intel graphics only (or the other is disabled), it does not work for all graphics cards. On one of the testing machine that have an Intel HDG 4600 graphics card, we have a newly installed Windows 11 on it.When using
WinFormsHost
withSKGLControl
, it works just fine.SKGLElement
is based onGLWpfControl
(https://github.com/opentk/GLWpfControl). We did try out this control, and it did result in the same issue. There are others faced the same issue: https://github.com/opentk/GLWpfControl/issues/73.@mattleibow @gmurray81 do you have any suggestions on how to resolve such issue. Is it a problem with the control or the machine it self? if so, why
SKGLControl
works fine on this machine? Aren't they both use OpenGL?Code
Expected Behavior
No response
Actual Behavior
No response
Version of SkiaSharp
3.x (Alpha)
Last Known Good Version of SkiaSharp
2.88.2 (Previous)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
Windows 11
Devices
HP Mini PC with Intel HDG 4600
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct