Pinpoint icon indicating copy to clipboard operation
Pinpoint copied to clipboard

Variable max texture size on WebGL depending on browser

Open dbirman opened this issue 5 months ago • 2 comments

https://browserleaks.com/webgl

const canvas = document.createElement('canvas');
const gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');

// Check if WebGL is supported
if (gl) {
    const maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
    console.log('Maximum texture size:', maxTextureSize);
} else {
    console.log('WebGL not supported');
} 

dbirman avatar Sep 08 '24 01:09 dbirman