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

Add safety check in DrawNuklear() #72

Merged
merged 3 commits into from
Jun 19, 2024
Merged

Add safety check in DrawNuklear() #72

merged 3 commits into from
Jun 19, 2024

Conversation

RobLoach
Copy link
Owner

@RobLoach RobLoach commented Jun 15, 2024

Fixes #68

@RobLoach
Copy link
Owner Author

@alexlnkp Doing this does add another call to each render loop, but I think it should be okay? Mind testing?

include/raylib-nuklear.h Outdated Show resolved Hide resolved
@alexlnkp
Copy link

alexlnkp commented Jun 19, 2024

Works like a charm! The extra check each render call is a bit sad but I think it's better this way (kind of like a check if malloc fails, it's sad but you need to do it)

Here's a full demo:
https://gist.github.com/alexlnkp/d75e354b6f0173d3b6449cec2fd50c6a

@RobLoach RobLoach merged commit 898acc2 into master Jun 19, 2024
@RobLoach RobLoach deleted the drawnuklear-safety branch July 23, 2024 15:37
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.

no proper way of not rendering nuklear gui?
2 participants