Skip to content

Build EGL as Win32 and GLESv2 as WASDK to fix unpackaged WinUI loading issues#3338

Merged
mattleibow merged 1 commit intomainfrom
dev/fix-2968
Aug 22, 2025
Merged

Build EGL as Win32 and GLESv2 as WASDK to fix unpackaged WinUI loading issues#3338
mattleibow merged 1 commit intomainfrom
dev/fix-2968

Conversation

@mattleibow
Copy link
Contributor

Description of Change

This fixes WinUI apps running as unpackaged. Thanks for the hard work in figuring all this out @TommiGustafsson-HMP!

I am still investigating the why but it may be because we do [DllImport] directly with libEGL and thus it has a specific calling convention or some pre-execution code that is failing in unpackaged.

I think this fixes the issue as the main WASDK code is in libGLESv2 and not libEGL. And WASDK apps can load and use Win32 binaries just fine since they are all the same thing now - unlike UWP apps.

Bugs Fixed

@mattleibow
Copy link
Contributor Author

/rebase

This fixes WinUI apps running as unpackaged.
Thanks to @TommiGustafsson-HMP
Fixes #2968
@mattleibow mattleibow merged commit 9a2219e into main Aug 22, 2025
1 of 2 checks passed
@mattleibow mattleibow deleted the dev/fix-2968 branch August 22, 2025 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG] [WinUI 3 / MAUI, 9.0 Preview 6, SkiaSharp 3.0-preview4.1] SKGLView crashes WinUI 3 MAUI App when the app is built in the unpackaged mode

1 participant