-
Notifications
You must be signed in to change notification settings - Fork 557
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] GRGlInterface.Create() returns null on Windows on Arm #3155
Comments
EDIT The I am running Windows in Parallels on my M1, so it may just be that. ORIGINAL My PR fixes the direct issue with the creation of the GL context for drawing. However, this does not mean the GL views suddenly start working. I am currently using this on WPF:
But I get an error:
|
You do need to build your own I built mine locally: cmake -B build-win32-shared-arm64 -G "Visual Studio 17 2022" -A arm64 -D BUILD_SHARED_LIBS=ON -D GLFW_BUILD_EXAMPLES=OFF -D GLFW_BUILD_TESTS=OFF -D GLFW_BUILD_DOCS=OFF
cmake --build build-win32-shared-arm64 --parallel Then I copied the You could also ty using vcpkg and build I also am attaching the binaries I built here just for quick reference (use at own risk): glfw3.zip |
Description
I am developing on Arm64 on Windows 11, using the latest version of SkiaSharp. The app is a .NET Framework 4.8 application. We use OpenGL for GPU rendering.
Calling:
GRGlInterface.Create()
returns null
The same code on x64 works correctly.
I have the OpenCL™, OpenGL®, and Vulkan® Compatibility Pack installed. https://apps.microsoft.com/detail/9nqpsl29bfff?hl=en-us&gl=US, so would I expect this to work.
Code
using (var glInterface = GRGlInterface.Create())
_grContext = GRContext.CreateGl(glInterface);
This is how we get the OpenGL context. On Arm64 glInterface ends up being null which results in a null context as well.
Expected Behavior
We expect that OpenGL would work on Arm64 just as it does on x64 with that compatibility pack installed
Actual Behavior
Null is returned
Version of SkiaSharp
3.116.0 (Current)
Last Known Good Version of SkiaSharp
No known good versions
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
Windows 11 2H24
Arm64
.NET Framework 4.8
OpenCL™, OpenGL®, and Vulkan® Compatibility Pack
Devices
Lenovo Yoga Slim 7x
Relevant Screenshots
No response
Relevant Log Output
Code of Conduct
The text was updated successfully, but these errors were encountered: