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

Track and release state blocks on device release #176

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

WinterSnowfall
Copy link
Contributor

Similarly to VS, shader definitions and PS, some games create state blocks that they never delete and expect the D3D8 runtime to perform this cleanup on device release (this doesn't happen in D3D9). Should help improve, if not completely address #92, but needs some wider testing.

@WinterSnowfall
Copy link
Contributor Author

WinterSnowfall commented Sep 11, 2024

I've tested the PR with Cossacks II in Wine and everything seems fine now, even after multiple in-game-then-back-to-main-menu switches. I doubt d3d8to9 can be used with the game on Windows anyway, because it force loads the d3d8.dll from the system32 path (or syswow64 on modern systems).

@WinterSnowfall WinterSnowfall marked this pull request as ready for review September 11, 2024 14:10
@crosire crosire merged commit 18bce66 into crosire:main Sep 11, 2024
@WinterSnowfall WinterSnowfall deleted the sb-tracking branch September 11, 2024 19:03
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