Open Bug 1889315 Opened 2 years ago

Is it possible to issue WebGL Alpha-premult warning only once?

Categories

(Core :: Graphics: CanvasWebGL, enhancement)

Firefox 122
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: ssbachinin, Unassigned)

Details

Steps to reproduce:

gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);
gl.texImage2D(.....); // provide non-DOM-Element source

Actual results:

a LOT of warnings in the console: "WebGL warning: texImage: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads".
I understand that you don't plan to remove these warnings. (https://bugzilla.mozilla.org/show_bug.cgi?id=1400077).
But in certain situations (in Maplibre-gl-js) console is FULL of them, making development hard. Our users keep complaining about this.

Expected results:

Only one warning, instead of many.

You need to log in before you can comment on or make changes to this bug.