Skip to content

Commit 88f8a92

Browse files
insanemalKuleRucket
authored andcommitted
fix(linux): ensure NvFBC capture works after multiple sessions (LizardByte#3020)
1 parent 39fc45e commit 88f8a92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platform/linux/cuda.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,7 @@ namespace cuda {
702702

703703
NVFBC_DESTROY_HANDLE_PARAMS params { NVFBC_DESTROY_HANDLE_PARAMS_VER };
704704

705+
ctx_t ctx { handle };
705706
if (func.nvFBCDestroyHandle(handle, &params)) {
706707
BOOST_LOG(error) << "Couldn't destroy session handle: "sv << func.nvFBCGetLastErrorStr(handle);
707708
}

0 commit comments

Comments
 (0)