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

Fix the shader wrapping function #2

Closed
wants to merge 8 commits into from
Closed

Conversation

LmanTW
Copy link

@LmanTW LmanTW commented Jul 20, 2024

Fix WebGLRenderingContext._wrapShader so the #version directive can work.

The original _wrapShader function adds code to the start of the shader, making the #version directive unusable. The new function moves the #version directive to the start after the code is added.

@kmamal kmamal force-pushed the master branch 3 times, most recently from eabe7d2 to 8743347 Compare January 20, 2025 20:57
@kmamal
Copy link
Owner

kmamal commented Feb 22, 2025

Thanks for this! I have incorporated it in this commit 9a1a636

I will also try to upstream it to https://github.com/stackgl/headless-gl. It looks like they are aware of the issue: stackgl#290

@kmamal
Copy link
Owner

kmamal commented Feb 22, 2025

lol they fixed it already, the _wrapShader function is now empty: stackgl@5731a50#diff-6323d6e28ff21bcb05df2fd1def611809b1badf3af5977fd4a9933cc3d46428fL835

@kmamal kmamal closed this Feb 22, 2025
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.

2 participants