diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-09-26 18:15:15 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-09-26 18:15:15 +0200 |
commit | 412cf0dbae0705ca91a16ec92dadf129eaa9424e (patch) | |
tree | 1b5402270dbd8097f87e14543a41bdd7ccae9ef7 | |
parent | 8ab1150fb83dbd719858a4d14c82ddf258d83f35 (diff) |
Revert "Temp fix for nvfbc"
This reverts commit 8ab1150fb83dbd719858a4d14c82ddf258d83f35.
-rw-r--r-- | src/capture/nvfbc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/capture/nvfbc.c b/src/capture/nvfbc.c index 2aeb1de..ee77a20 100644 --- a/src/capture/nvfbc.c +++ b/src/capture/nvfbc.c @@ -185,7 +185,9 @@ static int gsr_capture_nvfbc_setup_handle(gsr_capture_nvfbc *self) { NVFBC_CREATE_HANDLE_PARAMS create_params; memset(&create_params, 0, sizeof(create_params)); create_params.dwVersion = NVFBC_CREATE_HANDLE_PARAMS_VER; - create_params.bExternallyManagedContext = NVFBC_FALSE; + create_params.bExternallyManagedContext = NVFBC_TRUE; + create_params.glxCtx = self->params.egl->glx_context; + create_params.glxFBConfig = self->params.egl->glx_fb_config; status = self->nv_fbc_function_list.nvFBCCreateHandle(&self->nv_fbc_handle, &create_params); if(status != NVFBC_SUCCESS) { |