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
Bug: WEBGL: INVALID_VALUE: shaderSource: string not ASCII (Older chrome version) #10301
Comments
hey there! thanks for sharing the issue. I have a few questions for ya that would help me to understand what might be going on.
Thanks in advance! |
Hi @GoodBoyDigital, I'll try to answer:
|
good to know thanks! |
Hi @GoodBoyDigital, here you can see the error: I wasn't able to do it in any of the public editors since they seems to not support chrome 68 anymore, but I did not minify JS for my example, you can clearly see where the error is happening. |
Hi @GoodBoyDigital , I found the issue, it's the comment string which Chrome 68 incorrectly interprets (it's the "'" character):
When I removed the comment form shader source, shader compiles correctly. |
I created a tiny PR for this change: Feel free to adapt it on your own if necessary |
Current Behavior
Shader is not compiled
Expected Behavior
Shader is compiled
Steps to Reproduce
Got to https://beta.zima.pages.dev/test/onecard using Chromium 68
Environment
pixi.js
: 8.0.1Possible Solution
No response
Additional Information
This only happens on version PIXI 8 onwards.
I have looked at the shader source and checked it for non-printable characters and didn't found any except
\n
.Shader source is something like this:
The text was updated successfully, but these errors were encountered: