Skip to content

Commit

Permalink
Merge pull request #29 from rawbengal/fix_hostfbo
Browse files Browse the repository at this point in the history
restore HostFBO in spoutGLDXinterop::WriteDX11texture when !bInvert
  • Loading branch information
Lynn Jarvis committed Nov 4, 2017
2 parents 9717eaa + 205f504 commit 46924e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SpoutSDK/Source/SpoutGLDXinterop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2377,6 +2377,8 @@ bool spoutGLDXinterop::WriteDX11texture (GLuint TextureID, GLuint TextureTarget,
else {
PrintFBOstatus(status);
}
// restore the previous fbo - default is 0
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, HostFBO);
}
}
g_pImmediateContext->Unmap(g_pStagingTexture, 0);
Expand Down

0 comments on commit 46924e3

Please sign in to comment.