GameDatabase: Fix ForceSoftwareRendererForReadbacks
This commit is contained in:
parent
a3c7449749
commit
e8f4bd5c5e
|
@ -217,7 +217,7 @@ const char* GameDatabase::GetCompatibilityRatingDisplayName(CompatibilityRating
|
|||
|
||||
void GameDatabase::Entry::ApplySettings(Settings& settings, bool display_osd_messages) const
|
||||
{
|
||||
constexpr float osd_duration = 10.0f;
|
||||
constexpr float osd_duration = 5.0f;
|
||||
|
||||
if (display_active_start_offset.has_value())
|
||||
settings.display_active_start_offset = display_active_start_offset.value();
|
||||
|
@ -264,6 +264,18 @@ void GameDatabase::Entry::ApplySettings(Settings& settings, bool display_osd_mes
|
|||
settings.gpu_renderer = GPURenderer::Software;
|
||||
}
|
||||
|
||||
if (HasTrait(Trait::ForceSoftwareRendererForReadbacks))
|
||||
{
|
||||
if (display_osd_messages && settings.gpu_renderer != GPURenderer::Software)
|
||||
{
|
||||
Host::AddKeyedOSDMessage("gamedb_force_software_rb",
|
||||
Host::TranslateStdString("OSDMessage", "Using software renderer for readbacks based on game settings."),
|
||||
osd_duration);
|
||||
}
|
||||
|
||||
settings.gpu_use_software_renderer_for_readbacks = true;
|
||||
}
|
||||
|
||||
if (HasTrait(Trait::ForceInterlacing))
|
||||
{
|
||||
if (display_osd_messages && settings.gpu_disable_interlacing)
|
||||
|
|
Loading…
Reference in New Issue