Skip to content

vello_hybrid: Unify texture creation code in WebGL backend#1448

Open
laurenz-canva wants to merge 3 commits intomainfrom
laurenz/webgl-texture
Open

vello_hybrid: Unify texture creation code in WebGL backend#1448
laurenz-canva wants to merge 3 commits intomainfrom
laurenz/webgl-texture

Conversation

@laurenz-canva
Copy link
Contributor

Perhaps I am missing something obvious here, but I'm not sure I get why we were using different clamp/filtering modes for some textures? 🤔 If I'm not mistaken, we are only ever using direct texture loading, so it seems to me like it should be fine to always use the same mode? At least all WebGL tests still seem to pass, but please let me know if I'm wrong.

Other than that, this PR just puts all of that logic into a method to reduce code duplication. 🙂

Comment on lines 1501 to 1503
gl.tex_parameteri(
WebGl2RenderingContext::TEXTURE_2D,
WebGl2RenderingContext::TEXTURE_MAX_LEVEL,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this still be needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments