diff options
| author | jk <[email protected]> | 2023-08-25 15:16:49 -0700 |
|---|---|---|
| committer | Adonais Romero González <[email protected]> | 2023-08-25 15:28:29 -0700 |
| commit | 2639b5d65fa4777c669c45be8f1a13142b0e49a0 (patch) | |
| tree | 188b78a22b572b62729c68684662dcb7b65297f0 /avstream/sampledevicemft/multipinmftutils.cpp | |
| parent | e0c0afda943a63d5e6ce888e158096428c6654df (diff) | |
[avstream/sampledevicemft] Fix format change error for YUY2 (#984)
Diffstat (limited to 'avstream/sampledevicemft/multipinmftutils.cpp')
| -rw-r--r-- | avstream/sampledevicemft/multipinmftutils.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/avstream/sampledevicemft/multipinmftutils.cpp b/avstream/sampledevicemft/multipinmftutils.cpp index e4a62d52..cbd64f72 100644 --- a/avstream/sampledevicemft/multipinmftutils.cpp +++ b/avstream/sampledevicemft/multipinmftutils.cpp @@ -1292,7 +1292,10 @@ UpdateAllocatorAttributes( level = spDevice->GetFeatureLevel(); dwBindFlags |= ((level >= D3D_FEATURE_LEVEL_10_0) ? D3D11_BIND_SHADER_RESOURCE : 0); } - + else + { + dwBindFlags |= D3D11_BIND_RENDER_TARGET; + } DMFTCHECKHR_GOTO(pAttributes->SetUINT32(MF_SA_D3D11_BINDFLAGS, dwBindFlags), done); done: |
