insert activecontext's window pointer in VR swapbuffer

This commit is contained in:
tuxerr
2018-10-25 17:54:32 -07:00
committed by Baldur Karlsson
parent 814e1d1b13
commit 6d949f19de
@@ -219,9 +219,7 @@ void WrappedOpenGL::HandleVRFrameMarkers(const GLchar *buf, GLsizei length)
{
if(strstr(buf, "vr-marker,frame_end,type,application") != NULL)
{
void *ctx = NULL, *wnd = NULL;
RenderDoc::Inst().GetActiveWindow(ctx, wnd);
SwapBuffers(wnd);
SwapBuffers((void *)m_ActiveContexts[Threading::GetCurrentID()].wnd);
m_UsesVRMarkers = true;
if(IsActiveCapturing(m_State))