mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 21:05:46 -04:00
GameDB: Add DisablePGXPPreserveProjFP trait
And add it to Crash Team Racing.
This commit is contained in:
@ -76,6 +76,7 @@ static constexpr const std::array<const char*, static_cast<u32>(GameDatabase::Tr
|
||||
"DisablePGXPTextureCorrection",
|
||||
"DisablePGXPColorCorrection",
|
||||
"DisablePGXPDepthBuffer",
|
||||
"DisablePGXPPreserveProjFP",
|
||||
"ForcePGXPVertexCache",
|
||||
"ForcePGXPCPUMode",
|
||||
"ForceRecompilerMemoryExceptions",
|
||||
@ -535,6 +536,19 @@ void GameDatabase::Entry::ApplySettings(Settings& settings, bool display_osd_mes
|
||||
settings.gpu_pgxp_color_correction = false;
|
||||
}
|
||||
|
||||
if (HasTrait(Trait::DisablePGXPPreserveProjFP))
|
||||
{
|
||||
if (display_osd_messages && settings.gpu_pgxp_enable && settings.gpu_pgxp_preserve_proj_fp)
|
||||
{
|
||||
Host::AddIconOSDMessage(
|
||||
"gamedb_disable_pgxp_texture", ICON_FA_MAGIC,
|
||||
TRANSLATE_STR("OSDMessage", "PGXP projection precision preservation disabled by compatibility settings."),
|
||||
osd_duration);
|
||||
}
|
||||
|
||||
settings.gpu_pgxp_preserve_proj_fp = false;
|
||||
}
|
||||
|
||||
if (HasTrait(Trait::ForcePGXPVertexCache))
|
||||
{
|
||||
if (display_osd_messages && settings.gpu_pgxp_enable && !settings.gpu_pgxp_vertex_cache)
|
||||
|
@ -43,6 +43,7 @@ enum class Trait : u32
|
||||
DisablePGXPTextureCorrection,
|
||||
DisablePGXPColorCorrection,
|
||||
DisablePGXPDepthBuffer,
|
||||
DisablePGXPPreserveProjFP,
|
||||
ForcePGXPVertexCache,
|
||||
ForcePGXPCPUMode,
|
||||
ForceRecompilerMemoryExceptions,
|
||||
|
Reference in New Issue
Block a user