Search Issue Tracker

Active

Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X, 6000.3.X

Votes

2

Found in

2021.3.48f1

2022.3.56f1

6000.0.35f1

6000.1.0b3

6000.2.0a1

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

Comments (1)

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