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

[rlgl] LoadShader behaviour change #2280

Closed
3 tasks done
MatthewOwens opened this issue Jan 13, 2022 · 0 comments · Fixed by #2281
Closed
3 tasks done

[rlgl] LoadShader behaviour change #2280

MatthewOwens opened this issue Jan 13, 2022 · 0 comments · Fixed by #2281

Comments

@MatthewOwens
Copy link
Contributor


Please, before submitting a new issue verify and check:

  • I tested it on latest raylib version from master branch
  • I checked there is no similar issue already reported
  • My code has no errors or misuse of raylib

Issue description

When only a vertex or a fragment shader is passed to LoadShader, the shader program fails rather than falling back to the default raylib vertex/fragment shader. E.g. LoadShader(0, "shader.fs"). This is a change in behaviour introduced in 7a15966.

Environment

Provide your Platform, Operating System, OpenGL version, GPU details where you experienced the issue.
Platform: Desktop
OS: Linux
OpenGL Version: 460 (shaders are using 330)

Code Example

Example available at: https://github.com/AbyssalThistle/shader-loading-issue/https://github.com/AbyssalThistle/shader-loading-issue/blob/develop/src/main.c

@MatthewOwens MatthewOwens changed the title [module] Short description of the issue/bug/feature [rlgl] LoadShader behaviour change Jan 13, 2022
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 a pull request may close this issue.

1 participant