fix(capture/windows): fix capture when using the basic render driver (#3531)

* fix(capture/windows): fix capture when using the basic render driver

* chore(tests): remove now unnecessary TESTS_SOFTWARE_ENCODER_UNAVAILABLE option
This commit is contained in:
Cameron Gutman 2025-01-12 16:05:18 -06:00 committed by GitHub
commit c369e8e5b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 5 additions and 16 deletions

View file

@ -23,7 +23,7 @@ namespace platf::dxgi {
// Add D3D11_CREATE_DEVICE_DEBUG here to enable the D3D11 debug runtime.
// You should have a debugger like WinDbg attached to receive debug messages.
auto constexpr D3D11_CREATE_DEVICE_FLAGS = D3D11_CREATE_DEVICE_VIDEO_SUPPORT;
auto constexpr D3D11_CREATE_DEVICE_FLAGS = 0;
template <class T>
void

View file

@ -760,7 +760,7 @@ namespace platf::dxgi {
adapter_p,
D3D_DRIVER_TYPE_UNKNOWN,
nullptr,
D3D11_CREATE_DEVICE_FLAGS,
D3D11_CREATE_DEVICE_FLAGS | D3D11_CREATE_DEVICE_VIDEO_SUPPORT,
featureLevels, sizeof(featureLevels) / sizeof(D3D_FEATURE_LEVEL),
D3D11_SDK_VERSION,
&device,