Skip to content

WebGL doesn't work with SelfHost BrowserSubProcess in CefSharp 121 #4706

@n303ef

Description

@n303ef

Is there an existing issue for this?

  • I have searched both open/closed issues, no issue already exists.

CefSharp Version

121.3.4

Operating System

Windows 11

Architecture

x64

.Net Version

.Net 4.7.2

Implementation

WinForms

Reproduction Steps

Enable SelfHost BrowserSubProcess (or enable Chrome Runtime which automatically enables Self Host) and open: https://get.webgl.org/

Expected behavior

Should confirm WebGL support and show 3D shape image.

Actual behavior

You can see text "Hmm. While your browser seems to support WebGL, it is disabled or unavailable."

Regression?

This worked in CefSharp 120 and lower versions

Known Workarounds

Browser surely is created with WebGl =CefState.Enabled
Problem doesn't reproduce in "cefclient.exe --multi-threaded-message-loop --no-sandbox --enable-chrome-runtime"

Does this problem also occur in the CEF Sample Application

No

Other information

It works if we change renderer to GLES:

settings.CefCommandLineArgs.Add("use-angle", "gles");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions