Skip to content

DuplicateOutput 报错,为什么会这样? #45

Description

@wicyn

hr = dxgiOutput1->DuplicateOutput(d3d11_device_.Get(), dxgi_output_duplication_.GetAddressOf());

std::cout<<(int)hr<<std::endl;
if (FAILED(hr)) {
    /* 0x887a0004: NVIDIA控制面板-->全局设置--首选图形处理器(自动选择) */
    printf("[DXGIScreenCapture] Failed to get duplicate output.\n");
    Destroy();
    return false;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions