Cannot assign to read only property 'RGBA8' of object '#<WebGLRenderingContext>'

28 views Asked by At

After I upgraded my Chrome browser to version 122.0.6261.70 (Official Build) (64-bit) today, my WebGL program stopped working and threw an exception Cannot assign to read only property 'RGBA8' of object '#'. Does anyone know the reason for this?

about code:

if (!gl.isWebGL2) {
    gl.RGBA8 = gl.RGBA;
    gl.RGB8 = gl.RGB;
}

An exception was thrown when executing gl.RGBA8 = gl.RGBA;.

Exception

When I rolled back the browser or removed the relevant code, everything went back to normal.

0

There are 0 answers