Skip to content

When changing window mouse passthrough only area inside the polygon is rendered #57835

Description

@earlroxas

Godot version

3.4.stable, 3.4.2.stable, 3.4.3.rc1

System information

Windows 10, GLES2, GLES3, nVidia 1030

Issue description

When changing the window mouse passthrough using OS.set_window_mouse_passthrough only area inside the polygon is being rendered. Also this only happen on Windows. I'm using Linux now, so it doesn't happen, also I dont know is it happen on macOS or not, because I dont have mac.

This is the screenshot on Linux (this is the correct one)
L
Here all elements are rendered. The text on top left also white rect in the middle.

This is the screenshot on Windows 10
Untitled
Notice that the text is gone. The white rect also half gone.

On windows only half of the rect is gone because I set the polygon to that area. You can see the polygon area by pressing "I".
With OS.set_window_mouse_passthrough It should render all thing be it inside the polygon or not. It only control what the mouse can interact with, like when it executed on linux.

Steps to reproduce

  1. Open project below
  2. Run On Windows
  3. Press T to turn on transparent background
  4. Press P to change the passthrough area

Minimal reproduction project

TransBGBug.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions