Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable max texture size on WebGL depending on browser #734

Open
dbirman opened this issue Sep 8, 2024 · 2 comments
Open

Variable max texture size on WebGL depending on browser #734

dbirman opened this issue Sep 8, 2024 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dbirman
Copy link
Member

dbirman commented Sep 8, 2024

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 dbirman added the bug Something isn't working label Sep 8, 2024
@dbirman dbirman added this to the v1.2.X milestone Sep 8, 2024
@dbirman dbirman self-assigned this Sep 8, 2024
@dbirman
Copy link
Member Author

dbirman commented Sep 8, 2024

@dbirman
Copy link
Member Author

dbirman commented Sep 8, 2024

While fixing this also replace SetSelectionLayer loop with Array.Fill(pixels, transparent);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant