Skip to content

Commit

Permalink
Don't attempt pause while stepping.
Browse files Browse the repository at this point in the history
We'll just hang in that case.
  • Loading branch information
unknownbrackets committed Jan 17, 2016
1 parent 6d6c415 commit b29df00
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Windows/GPU/WindowsGLContext.cpp
Original file line number Diff line number Diff line change
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()) {
return;
}

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

0 comments on commit b29df00

Please sign in to comment.