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

Fix various cases of incorrect types for color arguments. #5

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

Conversation

Toqozz
Copy link

@Toqozz Toqozz commented Dec 16, 2024

The type for the argument color for many of the debug rendering functions appears to be wrong. It seems like it's actually passed by value, not by pointer. This was causing a segfault for me.

It's weird because e.g. drawGeometry() has the color passed by value, but I guess the rest didn't get updated at the same time.

In the jolt documentation they are also passed by value: https://jrouwe.github.io/JoltPhysics/class_debug_renderer.html#acea9470f13a1d50b677e2aaaeb9eeaed

These are not pointers, but value types.
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