Roderick Colenbrander : wined3d: Add WGL_ARB_pixel_format detection.

Alexandre Julliard julliard at winehq.org
Mon Mar 23 12:34:51 CDT 2009


Module: wine
Branch: master
Commit: 9181ddcd167b01983ac1682968ab4be427b35d88
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9181ddcd167b01983ac1682968ab4be427b35d88

Author: Roderick Colenbrander <thunderbird2k at gmx.net>
Date:   Sun Mar 15 10:01:43 2009 +0100

wined3d: Add WGL_ARB_pixel_format detection.

Right now we assume that the extension is there but this isn't always
the case. The next patch in this series will add a
non-WGL_ARB_pixel_format codepath to help VirtualBox and others.

---

 dlls/wined3d/directx.c    |    4 ++++
 dlls/wined3d/wined3d_gl.h |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 2ec60d4..4a6a1b1 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1434,6 +1434,10 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
                     gl_info->supported[WGL_ARB_PBUFFER] = TRUE;
                     TRACE_(d3d_caps)("FOUND: WGL_ARB_pbuffer support\n");
                 }
+                if (!strcmp(ThisExtn, "WGL_ARB_pixel_format")) {
+                    gl_info->supported[WGL_ARB_PIXEL_FORMAT] = TRUE;
+                    TRACE_(d3d_caps)("FOUND: WGL_ARB_pixel_format support\n");
+                }
                 if (!strcmp(ThisExtn, "WGL_WINE_pixel_format_passthrough")) {
                     gl_info->supported[WGL_WINE_PIXEL_FORMAT_PASSTHROUGH] = TRUE;
                     TRACE_(d3d_caps)("FOUND: WGL_WINE_pixel_format_passthrough support\n");
diff --git a/dlls/wined3d/wined3d_gl.h b/dlls/wined3d/wined3d_gl.h
index 3aa23e1..06d2f47 100644
--- a/dlls/wined3d/wined3d_gl.h
+++ b/dlls/wined3d/wined3d_gl.h
@@ -3462,6 +3462,7 @@ typedef enum _GL_SupportedExt {
 
   /* WGL extensions */
   WGL_ARB_PBUFFER,
+  WGL_ARB_PIXEL_FORMAT,
   WGL_WINE_PIXEL_FORMAT_PASSTHROUGH,
 
   OPENGL_SUPPORTED_EXT_END




More information about the wine-cvs mailing list