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."
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.