Skip to content

Commit ca4e8d6

Browse files
author
Paul Gofman
committed
HACK: winegstreamer: Disable MF_SA_D3D11_AWARE for some games.
CW-Bug-Id: #22581
1 parent 8d2ed3d commit ca4e8d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dlls/winegstreamer/h264_decoder.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,13 @@ HRESULT h264_decoder_create(REFIID riid, void **ret)
887887
goto failed;
888888
if (FAILED(hr = IMFAttributes_SetUINT32(decoder->attributes, &MF_SA_D3D11_AWARE, TRUE)))
889889
goto failed;
890+
891+
{
892+
const char *sgi;
893+
if ((sgi = getenv("SteamGameId")) && (!strcmp(sgi, "2009100")))
894+
IMFAttributes_SetUINT32(decoder->attributes, &MF_SA_D3D11_AWARE, FALSE);
895+
}
896+
890897
if (FAILED(hr = MFCreateAttributes(&decoder->output_attributes, 0)))
891898
goto failed;
892899
if (FAILED(hr = wg_sample_queue_create(&decoder->wg_sample_queue)))

0 commit comments

Comments
 (0)