-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[rlgl.h] WebGL default shaders not linking on no less than 1 browser #3260
Comments
@branc116 Thank you very much for the detailed report. It seems a browser-specific issue... Just checked the OpenGL ES GLSL 100 specs, section 4.5.2, and the precision qualifier for vertex shader shouldn't be required. The default precision qualifier for precision highp float; But, as per
The issue probably lies in this explanation:
So, it seems the browser is not able to provide the required precision storage for the About the proposed solution, it seems good but it implies losing In any case, the specs also say:
So, long story short, I'm merging proposed change but if I detect some issue on rendering I will just revert it. |
Please, before submitting a new issue verify and check:
Issue description
Init
When using default shader on web, there is a linking error and nothing is shown.
More testing
I noticed this when working on something that I work on, but now I see that the same problem is present in older versions of raylib.
On https://www.raylib.com/examples.html every example outputs the same linking error.
My guess
My guess is that this may have something to do with my browser. I can recall that the same examples worked maybe 2 months ago..
Testing my guess
I can confirm It's a bug in the browser...
Tested on a different browser:
I'm sad and a bit mad
What do I do? I guess this is brave problem.
It looks like everything works on every browser exept for anything on browser that I'm using...
Environment
On desktop:
On web:
Browser: Brave Browser 116.1.58.84 beta
OS: Arch Linux x86_64
Host: VivoBook_ASUSLaptop E210MAB_E210MA 1.0
Kernel: 6.4.10-arch1-1
Resolution: 1366x768
WM: dwm
CPU: Intel Celeron N4020 (2) @ 2.800GHz
GPU: Intel GeminiLake [UHD Graphics 600]
Memory: 819MiB / 3742MiB
Issue Screenshot
I've put printf inside a function that compiles shaders so that you can see shaders that are being compiled.
Code Example
The text was updated successfully, but these errors were encountered: