From a1713e620b8a3ed2f5c4d8fd4b32060c3a2972cd Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 22 Sep 2013 21:19:59 -0700 Subject: [PATCH] Initialize some psmf values. This was causing glitches when loading game A and then game B. --- Core/HLE/scePsmf.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/HLE/scePsmf.cpp b/Core/HLE/scePsmf.cpp index 8d1667ec9e..d2e5a9dbc3 100644 --- a/Core/HLE/scePsmf.cpp +++ b/Core/HLE/scePsmf.cpp @@ -54,8 +54,8 @@ int psmfPlayerVersion = PSMF_PLAYER_VERSION_FULL; int psmfMaxAheadTimestamp = 40000; int audioSamples = 2048; int audioSamplesBytes = audioSamples * 4; -int videoPixelMode = TPSM_PIXEL_STORAGE_MODE_32BIT_ABGR8888; -int videoLoopStatus = PSMF_PLAYER_CONFIG_NO_LOOP; +int videoPixelMode = TPSM_PIXEL_STORAGE_MODE_32BIT_ABGR8888; +int videoLoopStatus = PSMF_PLAYER_CONFIG_NO_LOOP; enum PsmfPlayerStatus { PSMF_PLAYER_STATUS_NONE = 0x0, @@ -417,6 +417,8 @@ PsmfPlayer *getPsmfPlayer(u32 psmfplayer) void __PsmfInit() { + videoPixelMode = TPSM_PIXEL_STORAGE_MODE_32BIT_ABGR8888; + videoLoopStatus = PSMF_PLAYER_CONFIG_NO_LOOP; } void __PsmfDoState(PointerWrap &p)