Skip to content

Commit

Permalink
Don't hook wined3d by default
Browse files Browse the repository at this point in the history
  • Loading branch information
clementgallet committed Apr 26, 2020
1 parent 04be56f commit 3c96a97
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/library/wine/wined3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ unsigned long wined3d_resource_map(void *resource, unsigned int sub_resource_idx

void hook_wined3d()
{
HOOK_PATCH_ORIG(wined3d_texture_get_resource, "wined3d.dll.so");
HOOK_PATCH_ORIG(wined3d_swapchain_present, "wined3d.dll.so");
HOOK_PATCH_ORIG(wined3d_resource_map, "wined3d.dll.so");
if (shared_config.game_specific_sync & SharedConfig::GC_SYNC_WITNESS) {
HOOK_PATCH_ORIG(wined3d_texture_get_resource, "wined3d.dll.so");
HOOK_PATCH_ORIG(wined3d_swapchain_present, "wined3d.dll.so");
HOOK_PATCH_ORIG(wined3d_resource_map, "wined3d.dll.so");
}
}


Expand Down

0 comments on commit 3c96a97

Please sign in to comment.