From c642f92bfbaba9ccf863951f424de9c1cc1ace70 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 28 Mar 2015 13:01:30 -0700 Subject: [PATCH] Initialize a few display state values on init. --- Core/HLE/sceDisplay.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/HLE/sceDisplay.cpp b/Core/HLE/sceDisplay.cpp index 4563ab2232..e9217dd10e 100644 --- a/Core/HLE/sceDisplay.cpp +++ b/Core/HLE/sceDisplay.cpp @@ -187,6 +187,7 @@ void __DisplayInit() { framebuf.topaddr = 0x04000000; framebuf.pspFramebufFormat = GE_FORMAT_8888; framebuf.pspFramebufLinesize = 480; // ?? + memset(&latchedFramebuf, 0, sizeof(latchedFramebuf)); lastFlipCycles = 0; lastFlipsTooFrequent = 0; wasPaused = false; @@ -200,6 +201,7 @@ void __DisplayInit() { CoreTiming::ScheduleEvent(msToCycles(frameMs - vblankMs), enterVblankEvent, 0); isVblank = 0; + frameStartTicks = 0; vCount = 0; hCountBase = 0; curFrameTime = 0.0;