Merge pull request #16617 from unknownbrackets/gedebugger

GE Debugger: Prevent double init
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2022-12-19 08:09:52 +01:00
commit 64a9884d1d
1 file changed
+2 -2
+2 -2
View File
@@ -780,7 +780,7 @@ void NotifyDisplay(u32 framebuf, int stride, int fmt) {
if (active && HasDrawCommands()) {
writePending = true;
}
if (nextFrame && (gstate_c.skipDrawReason & SKIPDRAW_SKIPFRAME) == 0) {
if (!active && nextFrame && (gstate_c.skipDrawReason & SKIPDRAW_SKIPFRAME) == 0) {
NOTICE_LOG(SYSTEM, "Recording starting on display...");
BeginRecording();
}
@@ -835,7 +835,7 @@ void NotifyBeginFrame() {
FinishRecording();
}
if (nextFrame && (gstate_c.skipDrawReason & SKIPDRAW_SKIPFRAME) == 0 && noDisplayAction) {
if (!active && nextFrame && (gstate_c.skipDrawReason & SKIPDRAW_SKIPFRAME) == 0 && noDisplayAction) {
NOTICE_LOG(SYSTEM, "Recording starting on frame...");
BeginRecording();
// If we began on a BeginFrame, end on a BeginFrame.