Fix a crash when calling D3DDevice_SetTextureState_BorderColor_: Trampolines don't work right for LTCG titles
This commit is contained in:
parent
123d6d95be
commit
6ca433b96a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue