Fix a crash when calling D3DDevice_SetTextureState_BorderColor_: Trampolines don't work right for LTCG titles

This commit is contained in:
Luke Usher 2018-10-29 18:48:27 +00:00
parent 123d6d95be
commit 6ca433b96a
1 changed files with 3 additions and 1 deletions

View File

@ -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);
//DEBUG_D3DRESULT(hRet, "g_pD3DDevice->SetTextureStageState");
}
// This uses a custom calling convention where parameter is passed in EAX