Skip to content

Commit c49fc23

Browse files
illusion0001Xcedf
authored andcommitted
Reprotect Hack
1 parent b7eb847 commit c49fc23

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

rpcs3/Emu/RSX/Common/texture_cache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3326,7 +3326,7 @@ namespace rsx
33263326

33273327
lock.upgrade();
33283328

3329-
cached_dest->reprotect(utils::protection::no, { mem_offset, dst_payload_length });
3329+
cached_dest->reprotect(g_cfg.video.reprotect_hack ? utils::protection::ro : utils::protection::no, {mem_offset, dst_payload_length});
33303330
cached_dest->touch(m_cache_update_tag);
33313331
update_cache_tag();
33323332

rpcs3/Emu/system_config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ struct cfg_root : cfg::node
148148
cfg::_bool overlay{ this, "Debug overlay", false, true };
149149
cfg::_bool renderdoc_compatiblity{ this, "Renderdoc Compatibility Mode" };
150150
cfg::_bool use_gpu_texture_scaling{ this, "Use GPU texture scaling", false };
151+
cfg::_bool reprotect_hack{ this, "Reprotect Hack", false }; // Workaround for flickering shadows and missing water
151152
cfg::_bool stretch_to_display_area{ this, "Stretch To Display Area", false, true };
152153
cfg::_bool force_high_precision_z_buffer{ this, "Force High Precision Z buffer" };
153154
cfg::_bool strict_rendering_mode{ this, "Strict Rendering Mode" };

0 commit comments

Comments
 (0)