Pinpoint
Pinpoint copied to clipboard
Variable max texture size on WebGL depending on browser
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');
}