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

Use at least one BackBuffer in D3D8DeviceEx #91

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

WinterSnowfall
Copy link

@WinterSnowfall WinterSnowfall commented Jan 23, 2023

Gets Red Faction going up to the game menu and mirrors what D3D9 does. I think I'm doing the right thing here, but please treat all my PRs as unexploded ordnance.

This was discovered while investigating a crash in IDirect3DDevice8::GetBackBuffer. Red Faction will create a IDirect3DDevice8 with BackBufferCount = 0, then call GetBackBuffer for iBackBuffer = 0, which would try to assign it on top of an out of bounds vector index.

P.S.: Apparently also fixes #79 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duke Nukem - Manhattan Project crashes on startup
2 participants