From aab98fc6eab504ec64acdbb604cfd41eb4a5c601 Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Tue, 14 Aug 2007 11:31:14 +0200 Subject: [PATCH] wgl: Recognize Vista's PFD_SUPPORT_COMPOSITION flag. --- dlls/winex11.drv/opengl.c | 3 +++ include/wingdi.h | 1 + 2 files changed, 4 insertions(+) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index ebed6306509..ea4a28a4e33 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -173,6 +173,9 @@ static void dump_PIXELFORMATDESCRIPTOR(const PIXELFORMATDESCRIPTOR *ppfd) { TEST_AND_DUMP(ppfd->dwFlags, PFD_SWAP_COPY); TEST_AND_DUMP(ppfd->dwFlags, PFD_SWAP_EXCHANGE); TEST_AND_DUMP(ppfd->dwFlags, PFD_SWAP_LAYER_BUFFERS); + /* PFD_SUPPORT_COMPOSITION is new in Vista, it is similar to composition + * under X e.g. COMPOSITE + GLX_EXT_TEXTURE_FROM_PIXMAP. */ + TEST_AND_DUMP(ppfd->dwFlags, PFD_SUPPORT_COMPOSITION); #undef TEST_AND_DUMP TRACE("\n"); diff --git a/include/wingdi.h b/include/wingdi.h index 02159222121..77d8d9235f8 100644 --- a/include/wingdi.h +++ b/include/wingdi.h @@ -88,6 +88,7 @@ typedef struct tagPIXELFORMATDESCRIPTOR { #define PFD_SWAP_COPY 0x00000400 #define PFD_SWAP_LAYER_BUFFERS 0x00000800 #define PFD_GENERIC_ACCELERATED 0x00001000 +#define PFD_SUPPORT_COMPOSITION 0x00008000 /* Vista stuff */ #define PFD_DEPTH_DONTCARE 0x20000000 #define PFD_DOUBLEBUFFER_DONTCARE 0x40000000