mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-18 19:55:54 +00:00
When StartFrameCapture() is called on API, also make that wnd active
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user