Use correct rounding mode on x86 and x86-64 recompiled versions of PF2ID. Fixes rendering errors on Unreal 3DNow! software renderer
This commit is contained in:
parent
8ee9b07ab2
commit
56a4d5cf83
6 changed files with 14 additions and 0 deletions
|
|
@ -333,6 +333,7 @@ pclog(" offsetof(codeblock_t, next_2)=%i\n", offsetof(codeblock_t, next_2));
|
|||
: "=m" (cpu_state.old_fp_control2),
|
||||
"=m" (cpu_state.old_fp_control)
|
||||
);
|
||||
cpu_state.trunc_fp_control = cpu_state.old_fp_control | 0x6000;
|
||||
}
|
||||
|
||||
void codegen_set_rounding_mode(int mode)
|
||||
|
|
|
|||
Loading…
Reference in a new issue