-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
map_ninepatch_axis() fix #34704
map_ninepatch_axis() fix #34704
Conversation
What does this actually fix? Are you just trying to solve a compiler/static checker warning? Those two uniforms are set via godot/scene/gui/nine_patch_rect.cpp Lines 82 to 84 in 97ebde4
Please also try to write more explicit commit messages, "fix" and the name of a static method deep in the backend doesn't give us much information on what this commit actually does. A commit log should describe the bug that it fixes, so that we can easily understand it without having to read the code. See https://github.com/godotengine/godot/blob/master/CONTRIBUTING.md#format-your-commit-logs-with-readability-in-mind |
Oh sorry, I asked him to submit this fix. Technically this is not a bug because it will never go via a different path, but lets say that in some mysterious platforms that some people may be porting code too, the compiler will complain because not all return paths are satisfied. |
Well I think it's better to add an |
`ERROR: _display_error_with_code: CanvasShaderGLES3: Fragment Program Compilation Failed: 0:166(2): error: `return' with wrong type int, in function `map_ninepatch_axis' returning float` caused by godotengine#34704
Adapted from e4907e5, supersedes and closes godotengine#34704.
Not all control paths return in the function
map_ninepatch_axis()
. Removing anif
fixes it.