Skip to content

Commit 46924e3

Browse files
author
Lynn Jarvis
authored
Merge pull request leadedge#29 from rawbengal/fix_hostfbo
restore HostFBO in spoutGLDXinterop::WriteDX11texture when !bInvert
2 parents 9717eaa + 205f504 commit 46924e3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

SpoutSDK/Source/SpoutGLDXinterop.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2377,6 +2377,8 @@ bool spoutGLDXinterop::WriteDX11texture (GLuint TextureID, GLuint TextureTarget,
23772377
else {
23782378
PrintFBOstatus(status);
23792379
}
2380+
// restore the previous fbo - default is 0
2381+
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, HostFBO);
23802382
}
23812383
}
23822384
g_pImmediateContext->Unmap(g_pStagingTexture, 0);

0 commit comments

Comments
 (0)