Skip to content

Fix output duplication incorrect parameter#4

Merged
RobbyV2 merged 2 commits intoRobbyV2:mainfrom
IVAN-MK7:fix-output-duplication-incorrect-parameter
Apr 7, 2026
Merged

Fix output duplication incorrect parameter#4
RobbyV2 merged 2 commits intoRobbyV2:mainfrom
IVAN-MK7:fix-output-duplication-incorrect-parameter

Conversation

@IVAN-MK7
Copy link
Copy Markdown
Contributor

@IVAN-MK7 IVAN-MK7 commented Mar 9, 2026

Makes the DXGIManager::acquire_output_duplication() method retry the output1.DuplicateOutput(&d3d11_device) function call by recalling d3d11_create_device() with no feature levels (D3D_FEATURE_LEVEL), instead of the currently hardcoded D3D_FEATURE_LEVEL_9_1.

Fixes Output duplication error: "The parameter is incorrect."

@gitnotebooks
Copy link
Copy Markdown

gitnotebooks bot commented Mar 9, 2026

Review these changes at https://app.gitnotebooks.com/RobbyV2/dxgi-capture-rs/pull/4

Copy link
Copy Markdown
Owner

@RobbyV2 RobbyV2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good - the retry logic with no feature levels is the right fix for hardware compatibility. Thanks!

@RobbyV2 RobbyV2 merged commit 026c58f into RobbyV2:main Apr 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Output duplication error: "The parameter is incorrect."

2 participants