Skip to content

Commit ab928af

Browse files
mqhajiclshortfuse
authored andcommitted
fix(maxpayne3): remove rgba8_typeless upgrades
- was likely the cause of artifacts on certain shadows
1 parent 4b0be1a commit ab928af

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/games/maxpayne3/addon.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -489,15 +489,16 @@ BOOL APIENTRY DllMain(HMODULE h_module, DWORD fdw_reason, LPVOID lpv_reserved) {
489489
.new_format = reshade::api::format::r16g16b16a16_float,
490490
});
491491

492-
renodx::mods::swapchain::swap_chain_upgrade_targets.push_back({
493-
.old_format = reshade::api::format::r8g8b8a8_typeless,
494-
.new_format = reshade::api::format::r16g16b16a16_float,
495-
.index = 6, // Results in artifacts otherwise
496-
});
492+
// Artifacts in some shadows with r8g8b8a8_typeless upgrades
493+
// renodx::mods::swapchain::swap_chain_upgrade_targets.push_back({
494+
// .old_format = reshade::api::format::r8g8b8a8_typeless,
495+
// .new_format = reshade::api::format::r16g16b16a16_float,
496+
// .index = 6, // Results in artifacts otherwise
497+
// });
497498

498499
renodx::mods::swapchain::swap_chain_upgrade_targets.push_back({
499500
.old_format = reshade::api::format::r11g11b10_float,
500-
.new_format = reshade::api::format::r16g16b16a16_typeless,
501+
.new_format = reshade::api::format::r16g16b16a16_float,
501502
.use_resource_view_cloning = true, // Results in black screen otherwise
502503
});
503504

0 commit comments

Comments
 (0)