Skip to content

Commit

Permalink
Fix a bug that bottomcolor for remapped textures was not working. Rel…
Browse files Browse the repository at this point in the history
…ated issue #383
  • Loading branch information
hzqst committed Jan 24, 2024
1 parent 0becc6b commit d8b71dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Plugins/Renderer/exportfuncs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,10 @@ int HUD_GetStudioModelInterface(int version, struct r_studio_interface_s **ppint
(PUCHAR)pinst->detail->x86.operands[0].mem.disp < (PUCHAR)g_dwEngineDataBase + g_dwEngineDataSize &&
pinst->detail->x86.operands[1].type == X86_OP_REG)
{
r_bottomcolor = (decltype(r_bottomcolor))pinst->detail->x86.operands[0].mem.disp;
if ((void*)r_topcolor != (void *)pinst->detail->x86.operands[0].mem.disp)
{
r_bottomcolor = (decltype(r_bottomcolor))pinst->detail->x86.operands[0].mem.disp;
}
}

if (r_topcolor && r_bottomcolor)
Expand Down

0 comments on commit d8b71dc

Please sign in to comment.