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

Mica backdrop not working when RenderingMode is set to Win32RenderingMode.Wgl #15738

Closed
halfuwu opened this issue May 15, 2024 · 4 comments
Closed
Labels
bug by-design The behavior reported in the issue is actually correct. os-windows

Comments

@halfuwu
Copy link

halfuwu commented May 15, 2024

Describe the bug

Title basically says it all, when using Win32RenderingMode.Wgl, the mica backdrop doesn't work. Was using mica in my program until I started integrating OpenTKAvalonia into my project and had to switch to Wgl rendering, then mica stopped working.

To Reproduce

Create a new project.
Set RenderingMode = [Win32RenderingMode.Wgl] in Win32PlatformOptions in AppBuilder.
Make a window with TransparencyLevelHint="Mica".

Expected behavior

Mica backdrop should be working? (Apologies if this is an already known limitation)

Avalonia version

11.1.0-beta2

OS

Windows

Additional context

AppBuilder:
image

Expected Behavior:
image

Actual Behavior:
image

@halfuwu halfuwu added the bug label May 15, 2024
@maxkatz6
Copy link
Member

That's expected, mica/acrylic require composition and directx based rendering (which is usually done via Angle OpenGL in Avalonia). It won't work with WGL.

@maxkatz6 maxkatz6 added os-windows by-design The behavior reported in the issue is actually correct. labels May 16, 2024
@maxkatz6 maxkatz6 reopened this May 16, 2024
@maxkatz6 maxkatz6 closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
@maxkatz6
Copy link
Member

Btw, WGL shouldn't be necessary for OpenTK with 11.1 avalonia. But it might require some adjustments.

@halfuwu
Copy link
Author

halfuwu commented May 16, 2024

thank you for the clarification!!

@halfuwu
Copy link
Author

halfuwu commented May 16, 2024

Btw, WGL shouldn't be necessary for OpenTK with 11.1 avalonia. But it might require some adjustments.

well I'll make sure to take a look then, not too familiar with the opengl binding with avalonia which is why im using that repo someone alr made

will do some research!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug by-design The behavior reported in the issue is actually correct. os-windows
Projects
None yet
Development

No branches or pull requests

2 participants