Fixed bug in Voodoo recompiler breaking cc_localselect_override. Fixes colours in Return Fire II.

This commit is contained in:
SarahW 2017-11-23 21:11:43 +00:00
commit 542eb75483
2 changed files with 3 additions and 2 deletions

View file

@ -1904,7 +1904,8 @@ static inline void voodoo_generate(uint8_t *code_block, voodoo_t *voodoo, voodoo
addbyte(0x6e);
addbyte(0x8e);
addlong(offsetof(voodoo_params_t, color0));
/*JMP +*/
addbyte(0xeb); /*JMP +*/
addbyte(8+5+4+4);
/*!cc_localselect:*/
addbyte(0xf3); /*MOVDQU XMM1, ib*/ /* ir, ig and ib must be in same dqword!*/
addbyte(0x0f);

View file

@ -1837,7 +1837,7 @@ static inline void voodoo_generate(uint8_t *code_block, voodoo_t *voodoo, voodoo
addbyte(0x8e);
addlong(offsetof(voodoo_params_t, color0));
addbyte(0xeb); /*JMP +*/
addbyte(8);
addbyte(8+5+4+4);
/*!cc_localselect:*/
addbyte(0xf3); /*MOVDQU XMM1, ib*/ /* ir, ig and ib must be in same dqword!*/
addbyte(0x0f);