Skip to content

[d3d10] fix d3d10core crashing every d3d10 game - #83

Open
The412Banner wants to merge 1 commit into
pythonlover02:mainfrom
The412Banner:fix-d3d10core-device
Open

The412Banner wants to merge 1 commit into
pythonlover02:mainfrom
The412Banner:fix-d3d10core-device

Conversation

@The412Banner

Copy link
Copy Markdown

Hey, every D3D10 game crashes on start with Sarek 1.13.0 and 1.14.0.

Since #41, d3d10core calls D3D11CoreCreateDevice with the newer 10 argument version, but Sarek's d3d11.dll still exports the old 6 argument one. So the device lands in the wrong spot, d3d10core gets back a null device and crashes on the next line.

This puts the call back to the 6 argument version and links d3d10core against Sarek's own d3d11 again (the toolchain's libd3d11.a has the 10 argument one, which is why the 32-bit build needs this).

We've been shipping a patched 1.13.0 in Bannerlator and D3D10 games work again with it, everything else unchanged. If you'd rather update d3d11's export to the 10 argument version instead, that works too.

Thanks for keeping Sarek going!

d3d10core was calling D3D11CoreCreateDevice with the newer 10 argument
version, but sarek's d3d11.dll still exports the old 6 argument one.
The device ended up in the wrong spot, so every d3d10 game got a null
device and crashed right away. Go back to the 6 argument call and link
d3d10core against sarek's own d3d11 again.
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