Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Windows: libservo without no-wgl feature still requires ANGLE due to non-optional webxr featue #45027

@mukilan

Description

@mukilan

On Windows, servo crate declares a non-optional dependency on webxr:

webxr = { workspace = true, features = ["glwindow", "headless", "openxr-api"] }

This enables the openxr-api feature, which in-turn enables the sm-angle-default feature in surfman

openxr-api = ["angle", "openxr", "winapi", "wio", "surfman/sm-angle-default"]

Because of this, any rendering context created by servo using surfman ends up trying to use the ANGLE backend instead of the WGL backend even when no-wgl feature is not enabled for the servo crate.

I suspect webxr needs to declared as an optional dependency in servo. servoshell already enables the feature for servo unconditionally.

default = ["baked-in-resources", "gamepad", "servo/clipboard", "js_jit", "max_log_level", "webgpu", "webxr"]

Platform:
Issue identified on Github's windows-2022 image we use for CI

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-windowsAny version of Windows capable of running Servo

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions