Bug 272074

Summary: [Gtk] WebGL not enabled
Product: WebKit Reporter: Deepu S <ashoka.deepu>
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Major CC: ashoka.deepu, dino, kbr, kkinnunen
Priority: P2    
Version: Other   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
This is my Nvidia driver and spec. none

Deepu S
Reported 2024-04-02 23:06:49 PDT
Created attachment 470739 [details] This is my Nvidia driver and spec. I am using a python code opening a webkit browser for a WebGL application, but my content is not rendered, although its visible in other browsers in my desktop PC running on AMD64 arch. https://get.webgl.org/ renders "Hmm. While your browser seems to support WebGL, it is disabled or unavailable. If possible, please ensure that you are running the latest drivers for your video card."
Attachments
This is my Nvidia driver and spec. (21.97 KB, image/png)
2024-04-02 23:06 PDT, Deepu S
no flags
Deepu S
Comment 1 2024-04-02 23:21:18 PDT
import gi gi.require_version('Gtk', '3.0') gi.require_version('WebKit2', '4.0') from gi.repository import Gtk, WebKit2 window = Gtk.Window() window.set_default_size(800, 600) window.connect("destroy", Gtk.main_quit) scrolled_window = Gtk.ScrolledWindow() webview = WebKit2.WebView() settings = webview.get_settings() settings.set_enable_webgl(True) settings.set_enable_accelerated_2d_canvas(True) settings.set_hardware_acceleration_policy(WebKit2.HardwareAccelerationPolicy.ALWAYS) webview.set_settings(settings) webview.load_uri("https://get.webgl.org") scrolled_window.add(webview) window.add(scrolled_window) window.show_all() Gtk.main() here is the python code used. libwebkit2gtk-4.0-dev is installed.
Note You need to log in before you can comment on or make changes to this bug.