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

Reordered null at the end of strings for clarity. #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Aurora2500
Copy link

I had issues just following the code when it comes to null termination. Usually in go you don't deal with worrying about strings having them, so I reordered it such that the null is added inside the compileShader code rather than it already existing on the strings.

I'm creating this PR as in my opinion it is much clearer at a glance that this is neccesary, as some people (like me) will skip over the addition on the shader sources and would pay closer attention to the compileShader function, assuming the input string is standard & hasn't been doctored beforehand to deal with the idiosyncrasies of needing to worry about null at the end of strings.

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