[vlc-commits] directdraw: DDSCAPS_FRONTBUFFER is not a CAPS we can request on CreateSurface()
Steve Lhomme
git at videolan.org
Thu May 26 18:35:30 CEST 2016
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu May 26 18:15:59 2016 +0200| [3f565d334fdfdea3902a82d897d3f11f401c6a00] | committer: Jean-Baptiste Kempf
directdraw: DDSCAPS_FRONTBUFFER is not a CAPS we can request on CreateSurface()
effectively reverting 11f7a3676d9717970f7240ba9f251ae47f7c9a08
Close #16905
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3f565d334fdfdea3902a82d897d3f11f401c6a00
---
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;
}
More information about the vlc-commits
mailing list