Search Issue Tracker

Third Party Issue

Votes

3

Found in

2021.3.48f1

2022.3.56f1

6000.0.35f1

6000.1.0b3

6000.2.0a1

6000.3.0a1

6000.4.0a1

Issue ID

UUM-93245

Regression

No

INVALID_ENUM warning is thrown in WebGL Player when building an empty scene

-

How to reproduce:
1. Open a new URP project
2. Navigate to File → Build Settings
4. Select the WebGL platform and press Build and Run
5. Press CRTL+SHIFT+J
6. Observe the browser console

Expected result: INVALID_ENUM warning is not thrown
Actual result: INVALID_ENUM warning is thrown

Reproducible with: 2021.3.48f1, 2022.3.56f1, 6000.0.35f1, 6000.1.0b3

Reproducible on: Windows 10, Windows 11 (Edge and Chrome)
Not reproducible on: macOS 15.1.1 (Safari)

Warning: WebGL: INVALID_ENUM: getInternalformatParameter: invalid internalformat

  1. Resolution Note:

    This is coming from an issue in Chrome generating the warnings. A chrome bug was filed at https://issues.chromium.org/issues/454273251.

Comments (2)

  1. rawfungaming

    Oct 21, 2025 13:07

    Same here, we didn't use URP. The game still run in WebGL2 w/o problem but we need to clear all error logs before release.

    Hardware details: MacBook Pro Apple M2 Pro 12 (8 performance and 4 efficiency) CPU cores 32 GB
    Graphics hardware details: Apple M2 Pro
    Operating system: macOS 15.3.1 Arm64
    Unity Editor mode: WebGLSupport
    Unity version: 6000.2.7f2 (2b518236b676)

  2. Elringus

    Jun 06, 2025 09:04

    As a temporary workaround, prepend the following to game.framework.js

    (function () {
    const getInternalformatParameter = WebGL2RenderingContext.prototype.getInternalformatParameter;
    const invalidFormats = new Set([36756, 36757, 36759, 36760, 36761, 36763]);
    WebGL2RenderingContext.prototype.getInternalformatParameter = function (target, internalformat, pname) {
    if (invalidFormats.has(internalformat)) return null;
    return getInternalformatParameter.call(this, target, internalformat, pname);
    };
    })();

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.