Commit f19b0353 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

directdraw: DDSCAPS_FRONTBUFFER is not a CAPS we can request on CreateSurface()

effectively reverting 351cd5a8

Close #16905
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent fe63104a
......@@ -867,11 +867,8 @@ static int DirectXCreateSurface(vout_display_t *vd,
ddsd.dwFlags |= DDSD_CAPS;
if (use_overlay) {
ddsd.ddsCaps.dwCaps = DDSCAPS_OVERLAY | DDSCAPS_VIDEOMEMORY;
ddsd.ddsCaps.dwCaps |= DDSCAPS_FLIP | DDSCAPS_FRONTBUFFER;
if (backbuffer_count > 0)
ddsd.ddsCaps.dwCaps |= DDSCAPS_COMPLEX;
if (backbuffer_count > 0) {
ddsd.ddsCaps.dwCaps |= DDSCAPS_COMPLEX | DDSCAPS_FLIP;
ddsd.dwFlags |= DDSD_BACKBUFFERCOUNT;
ddsd.dwBackBufferCount = backbuffer_count;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment