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

Fixes for pbr_material_t::original_width and original_height for missing textures #263

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

res2k
Copy link
Contributor

@res2k res2k commented Jan 29, 2023

Was accessing a NULL pointer in one case, and not setting the values in another. Now, even if we get R_NOTEXTURE for a base image, use that for original dimensions.

Won't crash and at least somewhat consistent.

…ing textures

Was accessing a NULL pointer in one case, and not setting the values in another.
Now, even if we get R_NOTEXTURE for a base image, use that for original dimensions.

Won't crash and at least somewhat consistent.
@apanteleev apanteleev merged commit 59d2074 into NVIDIA:master Jan 30, 2023
@res2k res2k deleted the fix-original_dimensions-crash branch February 11, 2023 12:01
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