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

Rex DrawState: Fix crash from accessing possible null. #2343

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

emminizer
Copy link
Contributor

If one of the programs (e.g. HexTiler) fails to compile, it's possible to get _pcp as null. This patch fixes the immediate crash from that behavior. The globe still isn't shown in that case, but at least the software doesn't segfault immediately.

I know this is an unexpected case of null _pcp. I'd rather fix the root cause but since it looks like this can happen from a bad glsl, it might be easily triggered, so there should be some protection. I'm still looking for/at the root cause in the shader, it's something in the new Hex Tile stuff.

@gwaldron gwaldron merged commit a1568db into gwaldron:master Oct 6, 2023
3 checks passed
@emminizer emminizer deleted the rex-fix-crash branch October 10, 2023 13:04
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.

2 participants