[vlc-devel] [PATCH 2/4] directdraw: DDSCAPS_FRONTBUFFER is not a CAPS we can request on CreateSurface()
Steve Lhomme
robux4 at videolabs.io
Thu May 26 18:15:59 CEST 2016
effectively reverting 11f7a3676d9717970f7240ba9f251ae47f7c9a08
---
modules/video_output/win32/directdraw.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/modules/video_output/win32/directdraw.c b/modules/video_output/win32/directdraw.c
index df2cdc6..855de57 100644
--- a/modules/video_output/win32/directdraw.c
+++ b/modules/video_output/win32/directdraw.c
@@ -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;
}
--
2.8.1
More information about the vlc-devel
mailing list