Skip to content

Commit

Permalink
Merge pull request #8446 from unknownbrackets/minor
Browse files Browse the repository at this point in the history
Don't attempt pause while stepping
  • Loading branch information
hrydgard committed Jan 17, 2016
2 parents 5161476 + e5b4051 commit 14fb4f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Windows/GPU/WindowsGLContext.cpp
Expand Up @@ -24,6 +24,7 @@
#include "GL/gl.h"
#include "GL/wglew.h"
#include "Core/Config.h"
#include "Core/Core.h"
#include "util/text/utf8.h"
#include "i18n/i18n.h"
#include "UI/OnScreenDisplay.h"
Expand Down Expand Up @@ -54,6 +55,9 @@ void WindowsGLContext::Pause() {
if (!hRC) {
return;
}
if (Core_IsStepping()) {
return;
}

pauseRequested = true;
DWORD result = WaitForSingleObject(pauseEvent, INFINITE);
Expand All @@ -67,6 +71,9 @@ void WindowsGLContext::Resume() {
if (!hRC) {
return;
}
if (Core_IsStepping() && !resumeRequested) {
return;
}

if (!resumeRequested) {
ERROR_LOG(G3D, "Not waiting to get resumed");
Expand Down

0 comments on commit 14fb4f2

Please sign in to comment.