Fix recording display when a compositor is running

This commit is contained in:
dec05eba 2021-07-29 15:33:41 +02:00
parent 04d229caf3
commit 905d430cda

View File

@ -130,7 +130,8 @@ public:
}
create_capture_params.eTrackingType = tracking_type;
//create_capture_params.dwSamplingRateMs = 1000 / fps;
create_capture_params.bAllowDirectCapture = NVFBC_TRUE;
// Cant use this, it breaks when a compositor is used
//create_capture_params.bAllowDirectCapture = NVFBC_TRUE;
create_capture_params.bPushModel = NVFBC_TRUE;
if(tracking_type == NVFBC_TRACKING_OUTPUT)
create_capture_params.dwOutputId = output_id;