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:
Kawe Mazidjatari 2022-12-02 01:33:49 +01:00
parent 783b3dbb5a
commit 4cc3c28985

View File

@ -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