Skip to content

Commit 205f504

Browse files
authored
restore HostFBO in spoutGLDXinterop::WriteDX11texture when !bInvert
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, HostFBO) was missing in one section of code.
1 parent 9717eaa commit 205f504

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SpoutSDK/Source/SpoutGLDXinterop.cpp

+2
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)