gfx-rs / wgpu

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

On Macos there are vertical lines on screen when the window is put into fullscreen mode #3415

Open erenoku opened 1 year ago

erenoku commented 1 year ago

On Macos when the window is put into fullscreen mode there are vertical lines visible. This situation occurs on all examples in this repository except for hello-triangle.

Screen Shot 2023-01-22 at 18 43 02

The background is normally a dark blue color but when switched to fullscreen mode it looks like this.

My GPU is Intel(R) Iris(TM) Plus Graphics (Metal)

erenoku commented 1 year ago

After some debugging I discovered that setting either the width or the height of the surface to real size minus 1 fixes this issue. I don't know why this is the case as the reported size is correct and my method causes a one pixel wide black line on the edge of the screen.

spencerelliott commented 1 year ago

I am also seeing this issue in my iced project when making the window fullscreen (it uses wgpu for rendering). I have attached a log of the output when putting the window into fullscreen.

wgpu_3415_error_log.txt

Image of the issue: image

Vutshi commented 3 months ago

I have the same problem.

wgpu

Environment

The issue affects the following projects: https://github.com/dbalsom/martypc/issues/118 https://github.com/parasyte/pixels/issues/394