Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] SKGLElement gives black screen on Intel integrated graphics #2837

Open
1 task done
AhmedEssoubai opened this issue Apr 16, 2024 · 0 comments
Open
1 task done
Labels

Comments

@AhmedEssoubai
Copy link

Description

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.

SKGLElement is based on GLWpfControl(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: opentk/GLWpfControl#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

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

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant