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 a crash within LTCG SetBorderColor, fix off-by-one error in mip-map level test #1499

Merged
merged 3 commits into from
Oct 30, 2018

Conversation

LukeUsher
Copy link
Member

No description provided.

@@ -5734,7 +5734,9 @@ VOID XTL::EMUPATCH(D3DDevice_SetTextureState_BorderColor_0)
}


return EMUPATCH(D3DDevice_SetTextureState_BorderColor)(Stage, Value);
HRESULT hRet;
hRet = g_pD3DDevice->SetSamplerState(Stage, D3DSAMP_BORDERCOLOR, Value);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was made because trampolines do not work, and cannot be made to work for non-standard LTCG calling conventions

@PatrickvL PatrickvL merged commit 73b6aea into Cxbx-Reloaded:develop Oct 30, 2018
@LukeUsher LukeUsher deleted the ltcg-related-tweaks branch November 16, 2018 08:08
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