gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
12.27k stars 901 forks source link

Window surface texture bleeds out of the Windows 11 window borders #5877

Closed SKPG-Tech closed 3 months ago

SKPG-Tech commented 3 months ago

Description The surface texture seems to be bleeding out of the window borders

Repro steps Be on Windows 11. Simply keep resizing the window, happens with the hello triangle example. Mostly occurs when there is a window behind it as well.

Expected vs observed behavior Observed: The corners on Windows 11 are rounded, and it is possible to sometimes see the surface texture bleed out and show over the rounded border. Expected: The surface doesn't bleed out from the inside of the window.

Extra materials Observed:

Expected:

Platform Windows 11 23H2 git cloned repository from the trunk branch at e92e543

Wumpf commented 3 months ago

doesn't repro for me. Anything particular you did other than resizing? In any case it's likely this would be a winit bug then image

SKPG-Tech commented 3 months ago

Hmm, no. Just resizing should do it 😕

teoxoy commented 3 months ago

I've seen this issue with other apps on W11. I don't think it's a wgpu issue since the rounded corners are implemented in the compositor.

SKPG-Tech commented 3 months ago

Interesting. I apologize for my ignorance, but I haven't noticed that with other apps. Perhaps it is a Windows 11 bug. In that case, should I close this issue?

Wumpf commented 3 months ago

Yeah I think in any case there's nothing we can do on the wgpu side here.