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

WPFSample: SKGLControl is drawn as a red cross on Windows 7 #356

Closed
entdark opened this issue Aug 19, 2017 · 3 comments
Closed

WPFSample: SKGLControl is drawn as a red cross on Windows 7 #356

entdark opened this issue Aug 19, 2017 · 3 comments

Comments

@entdark
Copy link

entdark commented Aug 19, 2017

WPF.
SKGLControl is drawn as a red cross (aka painting failed).
Tried on both my and WPFSample projects.
It works fine on Windows 10.

OS: Windows 7 Ultimate x64.

@entdark
Copy link
Author

entdark commented Aug 19, 2017

Seems like it's related to #213.

ArgumentNullException: Argument cannot be null.
Parameter name: backendContext

in SkiaSharp.GRContext.Create(GRBackend backend, GRGlInterface backendContext)
in SkiaSharp.Views.Desktop.SKGLControl.OnPaint(PaintEventArgs e)

Also I checked and "libSkiaSharp.dll" that suppose to create the context is not loaded according to Debug -> Windows -> Modules.

@v-vasilev-synergy
Copy link

This happens for me on Windows10 when a GPU is not available.
E.g. samples work correctly for me with intergrated graphics enabled
If I disable the intergrated processor graphics on my machine then the sample fails with the above exceptions.

My guess is that the Windows7 machine used an older processor without integrated/dedicated graphics, and OpenGL failed to load

@mattleibow
Copy link
Contributor

I believe that is correct. I am making use of OpenTK's GLControl and that requires the use of OpenGL.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants