# Automatic fallback to software WebGL: what changed

> Without a usable GPU, Chrome no longer falls back to SwiftShader, so WebGL fails. On a GPU-less server the missing context is itself a value a page reads.

Source: https://mosaicbrowser.com/blog/swiftshader-webgl-fallback

## Chrome removed the software WebGL fallback

Without a usable GPU, Chrome no longer falls back to SwiftShader, so WebGL fails. On a GPU-less server the missing context is itself a value a page reads.

![No GPU, no WebGL, beside a screenshot: a Mosaic leak test: every surface a site reads, checked from inside the profile page](https://mosaicbrowser.com/covers/swiftshader-webgl-fallback.webp)

The console line `Automatic fallback to software WebGL has been deprecated` meant Chrome was about to stop running WebGL on the CPU when it could not use a GPU. The fallback was a library called SwiftShader. Chrome warned for a while, then removed it, and now a machine with no usable GPU gets no WebGL context at all. The opt-in that brings it back is the `--enable-unsafe-swiftshader` flag the warning names.

## What SwiftShader was doing

SwiftShader is a software implementation of the graphics APIs WebGL sits on. When Chrome found no GPU it could use, because of a virtual machine, a server with no graphics card, a remote desktop session or a driver on its blocklist, it quietly handed WebGL to SwiftShader, and the page got a working context that drew on the CPU.

That was convenient, and it had two problems. SwiftShader generates machine code at run time inside Chrome's GPU process, so any page that could create a WebGL context could reach a JIT compiler in a privileged process. And users who landed on it had no idea: a page that should have run on a GPU ran many times slower, and the bug reports described a slow site rather than a missing GPU.

During the deprecation, Chrome printed the warning whenever a context was backed by SwiftShader. After the removal, `canvas.getContext('webgl')` returns `null` on those machines.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Machines that exist](https://mosaicbrowser.com/features/real-fingerprints)

## Fixing it in your own app

If the warning or a blank canvas showed up in something you run, there are three honest answers, depending on where it runs:

1. On a desktop that should have a GPU, open `chrome://gpu` and read why hardware acceleration is off. A disabled setting or a blocklisted driver is a fix on that machine, not in the page.
2. On a test runner, a CI box or a virtual machine you control, launch Chrome with `--enable-unsafe-swiftshader`. Admins can set the `EnableUnsafeSwiftShader` policy, which Chrome documents as a temporary escape hatch rather than a setting to rely on.
3. In the page itself, check whether `getContext` returned `null` and degrade. WebGL was never guaranteed, and now the case where it is missing is common in exactly the environments that used to hide it.

## What the removal changed for fingerprinting

A WebGL renderer string is one of the first things a fingerprinting script reads. A real Mac reports `ANGLE Metal Renderer` with an Apple GPU; a Windows laptop reports its Direct3D adapter with a PCI device id in brackets. A GPU-less server running Chrome used to report SwiftShader instead, by name, inside the same `ANGLE (...)` string. Few people browse the web from a machine like that, so the string already marked the browser as running somewhere without graphics.

Without the fallback, the same server now gives one of two answers. Either WebGL is missing entirely, which an ordinary desktop browser rarely reports, or the operator has added `--enable-unsafe-swiftshader` and the renderer still says SwiftShader. Neither looks like a person's computer. The removal did not create a new signal so much as take away the quiet middle ground, where a server at least had a working context to show.

We saw the same population from the other side when we built our GPU table from sampled real-world fingerprints. The second most common Windows renderer in the data was `Microsoft Basic Render Driver`, and the Linux rows were full of SwiftShader: honest readings from virtual machines, remote sessions and headless bots, which make up a large part of anybody's crawl traffic. We drop software renderers and hypervisor adapters from the table, because a profile drawn from them would resemble the population a site is trying to filter out. [Nearly every hand-written Windows renderer string was wrong](https://mosaicbrowser.com/blog/hand-written-renderer-strings) is the rest of that story.

## Why we measure in a headed browser on real hardware

This is also why every measurement Mosaic takes runs in a headed browser on the computer in front of you. A headless Chrome names itself in its User-Agent as `HeadlessChrome` and drops the real GPU, so a leak test or a detector run in it grades a browser we do not ship. When we need background work, such as a warm-up or an audit, the browser is headed and parked off-screen: same renderer, same User-Agent as when you open the profile yourself.

Mosaic is a desktop app for macOS and Windows that runs on the computer in front of you, not on a server, and each profile's WebGL renderer is one a real GPU produces, drawn from the hardware catalogue. What the backend name inside that string tells a site, and why it gives away the operating system, is in [what ANGLE means in your WebGL renderer string](https://mosaicbrowser.com/blog/angle-in-webgl-renderer). The full list of values a page can read is in [browser fingerprint](https://mosaicbrowser.com/glossary/browser-fingerprint).

## Questions

### What does automatic fallback to software WebGL has been deprecated mean?

Chrome used to run WebGL on the CPU through SwiftShader when it could not use the GPU. That fallback was deprecated with this console warning and then removed, so on those machines creating a WebGL context now fails.

### How do I get WebGL back on a machine without a GPU?

Launch Chrome with --enable-unsafe-swiftshader, or set the EnableUnsafeSwiftShader policy, which Chrome describes as temporary. Both bring back SwiftShader with weaker security, so Google suggests them only for content you trust.

### Why did Chrome remove SwiftShader as a WebGL fallback?

SwiftShader compiles shader code into machine code inside the GPU process, which made it a large security risk for a path any web page could trigger. A CPU-rendered WebGL was also slow enough that users fell back to it without knowing why the page had become sluggish.

### Does the warning appear on a normal desktop with a graphics card?

Rarely. It shows when Chrome cannot use the GPU: a virtual machine, a remote desktop session, a blocklisted driver, a headless or container run. If it appears on an ordinary laptop, check chrome://gpu for the reason hardware acceleration is off.

## Related

[What ANGLE means in your WebGL renderer string](https://mosaicbrowser.com/blog/angle-in-webgl-renderer): ANGLE is the layer Chrome uses to turn WebGL into Direct3D, Metal or OpenGL. The backend it names in the renderer string tells a site your operating system.

[Our hand-typed Windows renderer strings missed one field](https://mosaicbrowser.com/blog/hand-written-renderer-strings): Chrome's ANGLE Direct3D11 renderer string carries the GPU's PCI device id. Our hand-typed Windows rows left it out, a string no real driver produces.

[UNMASKED_RENDERER is null until a page asks for it](https://mosaicbrowser.com/blog/webgl-debug-renderer-info-fresh-context): Chrome returns null for the unmasked WebGL renderer until the page calls getExtension, so a spoof that answers it earlier is a two-line tell.

[Browser fingerprint: what a site can read about your machine](https://mosaicbrowser.com/glossary/browser-fingerprint): A browser fingerprint is the set of values a site reads about your browser and computer, which together recognize you without cookies. What goes into one.



[window.chrome.app is missing, but only in the world you asked](https://mosaicbrowser.com/blog/window-chrome-app-undefined): window.chrome.app exists in a page's main world and is undefined in an isolated world, in every Chrome we tried. A content script reads the second one.

[Why navigator.webdriver is true, and why false proves little](https://mosaicbrowser.com/blog/why-navigator-webdriver-true): navigator.webdriver is the W3C WebDriver flag, true under Selenium, Playwright, Puppeteer or headless Chrome. A Chrome reading true scored 100 on IPHey.

[A detector that never answered because its tab was in the background](https://mosaicbrowser.com/blog/requestanimationframe-background-tab): Background tab throttling stops requestAnimationFrame. Our test tab was in the background, two detectors never answered, and Page.bringToFront fixed both.

## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy IP per profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
