texture corruption after load state regression. wince depth scale change

Texture weren't updated after loading a state. Regression introduced by
942224c685.
Change Windows CE depth scale from 0.1 to 0.01 to fix black screen FMV
on AMD and Intel GPUs. Issue #973
This commit is contained in:
Flyinghead 2023-03-13 21:03:16 +01:00
parent 8ca89ead0e
commit cc1b45b7cc
1 changed files with 4 additions and 2 deletions

View File

@ -45,6 +45,7 @@
#include <chrono>
settings_t settings;
constexpr float WINCE_DEPTH_SCALE = 0.01f;
static void loadSpecialSettings()
{
@ -57,7 +58,7 @@ static void loadSpecialSettings()
|| prod_id == "T26702N") // PBA Tour Bowling 2001
{
INFO_LOG(BOOT, "Enabling Full MMU and Extra depth scaling for Windows CE game");
config::ExtraDepthScale.override(0.1f); // taxi 2 needs 0.01 for FMV (amd, per-tri)
config::ExtraDepthScale.override(WINCE_DEPTH_SCALE);
config::FullMMU.override(true);
if (!config::ForceWindowsCE)
config::ForceWindowsCE.override(true);
@ -732,7 +733,7 @@ void loadGameSpecificSettings()
if (config::ForceWindowsCE)
{
config::ExtraDepthScale.override(0.1f);
config::ExtraDepthScale.override(WINCE_DEPTH_SCALE);
config::FullMMU.override(true);
}
}
@ -770,6 +771,7 @@ void dc_loadstate(Deserializer& deser)
mmu_set_state();
sh4_cpu.ResetCache();
KillTex = true;
}
void Emulator::setNetworkState(bool online)