Skip to content

Rendered offset to window bounds with Intel OpenGL on Windows #8321

@acarl005

Description

@acarl005

Description

I ran the hello_triangle example with 1 modification, I disabled the window decorations. The triangle rendered was not aligned with the window bounds. It is slightly down and to the right.

Repro steps

// .\examples\features\src\hello_triangle\mod.rs 
let mut builder = winit::window::WindowBuilder::new().with_decorations(false);
 $env:WGPU_BACKEND = 'gl'; cargo run --bin wgpu-examples hello_triangle 
Image

Notice the black areas and the triangle is cut off at the bottom.

Expected vs observed behavior

This is what the example is supposed to look like

Image

Extra materials

Logs show no validation errors.

This bug looks very similar to #1061. However, the offset in that case was in the opposite direction. Looks like the offset is by the same size though. That only affected the Dx12 backend while this only affects OpenGL. No resizing of the window is required in this case to trigger the bug.

Platform

Windows 10

Selected adapter: Intel(R) HD Graphics 4600
Backend: Gl 
Device type: IntegratedGpu
Vendor ID: 32902
Device ID: 0

I have the latest version of these drivers available from Intel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: wsiIssues with swapchain management or windowingbackend: glesIssues with GLES or WebGLhelp requiredWe need community help to make this happen.platform: windowsIssues with integration with windowstype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions