I use "readPixels()" for reading pixel color on webgl-canvas. I cannot read pixel when antialise set to false for getContext option. I can read with below line on Safari/MacOS, Chrome, Firefox and Safari/iOS.
const gl = canvas.getContext('webgl', {'preserveDrawingBuffer':true, 'antialias':true});
But I cannot read with below on Safari/MacOS, but can read on Chrome, Firefox and Safari/iOS.
const gl = canvas.getContext('webgl', {'preserveDrawingBuffer':true, 'antialias':false});
ADD LINE: console output Uint8Array [0, 0, 0, 0], but the pixel has color.
Is there a problem with Safari/MacOS or Do I need any option for Safari/MacOS ? Can I read pixel color with Safari/MacOS with antialias=false ?
Sorry for my poor English, thank you.