When StartFrameCapture() is called on API, also make that wnd active

This commit is contained in:
baldurk
2016-01-21 18:21:19 +01:00
parent eb3e74db38
commit 278a9774a0
3 changed files with 36 additions and 2 deletions
+6
View File
@@ -133,6 +133,12 @@ static void SetActiveWindow(void *device, void *wndHandle)
static void StartFrameCapture(void *device, void *wndHandle)
{
RenderDoc::Inst().StartFrameCapture(device, wndHandle);
if(device == NULL || wndHandle == NULL)
RenderDoc::Inst().MatchClosestWindow(device, wndHandle);
if(device != NULL && wndHandle != NULL)
RenderDoc::Inst().SetActiveWindow(device, wndHandle);
}
static uint32_t IsFrameCapturing()