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

Unpatch D3DResource_Release, detect freeing of resources via DestroyResource instead #1701

Merged
merged 1 commit into from Aug 25, 2019

Conversation

LukeUsher
Copy link
Member

This fixes an issue where host resources and Xbox resources were out-of-sync:

DestroyResource is used internally by the XDK to destroy resources when both the internal and external reference count reach zero,or when the resource is destroyed for any other purpose.

Our D3DDevice_Release was not able to catch all of these situations, leading to incorrect mapping between Xbox and Host resources under certain conditions.

@PatrickvL PatrickvL merged commit c1ffa2d into Cxbx-Reloaded:develop Aug 25, 2019
@LukeUsher LukeUsher deleted the destroy-resource branch August 26, 2019 09:42
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.

None yet

2 participants