iidxhook: Fix diagonal tearing on textures on iidx18 and 19

Affects all games based on version 18 and 19 which includes
the chinese versions

This code is based on the toastertools implementation.
Credits to the original authors.
This commit is contained in:
2d9f8a0741a7573b189035dcb819847ecb5d981d
2022-06-16 00:02:47 +02:00
committed by icex2
parent 8081793a5f
commit 4bd0ee5ef6
16 changed files with 342 additions and 0 deletions
+1
View File
@@ -72,6 +72,7 @@ iidxhook4_setup_d3d9_hooks(const struct iidxhook_config_gfx *config_gfx)
d3d9_config.device_adapter = config_gfx->device_adapter;
/* Required for GOLD (and newer?) to not crash with NVIDIA cards */
d3d9_config.iidx14_to_19_nvidia_fix = true;
d3d9_config.iidx18_and_19_diagonal_tearing_fix = config_gfx->diagonal_tearing_fix;
if (config_gfx->monitor_check == 0) {
log_info("Auto monitor check enabled");