summaryrefslogtreecommitdiff
path: root/avstream/sampledevicemft/multipinmftutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'avstream/sampledevicemft/multipinmftutils.cpp')
-rw-r--r--avstream/sampledevicemft/multipinmftutils.cpp5
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: