Skip to content

[Problem/Bug]: WebView2CompositionControl does not render content when DisableHWAcceleration is set to 1 in WPF #5281

Open
@dipsgin

Description

@dipsgin

What happened?

When the Windows registry key HKEY_CURRENT_USER\Software\Microsoft\Avalon.Graphics\DisableHWAcceleration is set to 1, the WebView2CompositionControl in WPF fails to render any web content. The control remains blank or black despite the WebView2 browser process loading the page successfully.

Is this expected behavior or a bug?

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

1.0.3296.44

SDK Version

1.0.3296.44

Framework

WPF

Operating System

Windows 11

OS Version

No response

Repro steps

  1. Set the registry key:
    HKEY_CURRENT_USER\Software\Microsoft\Avalon.Graphics\DisableHWAcceleration = 1
  2. Run a WPF application hosting a WebView2CompositionControl instance.
  3. Load any web page into the control.
  4. Observe that the control does not render the page content (blank/black window).

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions