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
Comments (2)
-
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) -
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
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.