mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Deref VFTable pointer only once to obtain CShaderGlue::SetupShader
Due to the new cache changes, the pointer should only be dereferenced once.
This commit is contained in:
parent
783b3dbb5a
commit
4cc3c28985
@ -49,7 +49,7 @@ class VShaderGlue : public IDetour
|
||||
}
|
||||
virtual void GetFun(void) const
|
||||
{
|
||||
CShaderGlue_SetupShader = CShaderGlue_VTable.WalkVTable(4).Deref(2).RCast<int(*)(CShaderGlue*, uint64_t, uint64_t, void*)>();
|
||||
CShaderGlue_SetupShader = CShaderGlue_VTable.WalkVTable(4).Deref().RCast<int(*)(CShaderGlue*, uint64_t, uint64_t, void*)>();
|
||||
}
|
||||
virtual void GetVar(void) const { }
|
||||
virtual void GetCon(void) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user