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

Fix crash when minimising Unreal engine games. #77

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mmdanggg2
Copy link
Contributor

When in fullscreen and minimising in UT it recreates the d3d9 device and this happens during the window proc and calling ShowWindow appears to trigger that. The D3D9SwapChainEx object windowData was pointing to becomes invalid and causes a crash. My solution here is just to grab it again as at the start of this function. Not sure if there's a better way you might want to fix it.

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.

1 participant