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

Bugfix panic in D3D11RenderEngine->restore #184

Merged
merged 6 commits into from
May 1, 2024
Merged

Conversation

FrankvdStam
Copy link
Collaborator

@FrankvdStam FrankvdStam commented Apr 28, 2024

When self.ps_instances is none, self.ps_instances_count is 0, then slice::from_raw_parts causes a panic here.
Same for the vs version. Initially I tried this fix with is_some() but it still caused a crash for me.

I don't know if this has any side effects, for me it renders fine after this fix.

src/renderer/backend/dx11.rs Outdated Show resolved Hide resolved
@FrankvdStam FrankvdStam requested a review from veeenu April 28, 2024 11:25
@FrankvdStam
Copy link
Collaborator Author

Committed your suggestion and did the same bellow, plus fixed the linting error, tested and it works on remastered.

@veeenu
Copy link
Owner

veeenu commented Apr 29, 2024

Oh, right, CI fails because of the new transmute lint. I'll fix that first and then merge this one, shouldn't need a rebase hopefully.

@FrankvdStam
Copy link
Collaborator Author

This change is so small, I don't think there will be any issues merging

Copy link
Owner

@veeenu veeenu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you ❤️

@veeenu veeenu merged commit 7df5357 into veeenu:main May 1, 2024
1 check passed
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