Christopher Harvey : winex11: Added WGL_BIND_TO_TEXTURE_DEPTH_NV to ConvertAttribWGLtoGLX.

Alexandre Julliard julliard at winehq.org
Thu Feb 7 07:59:31 CST 2008


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

Author: Christopher Harvey <arbuckle911 at gmail.com>
Date:   Tue Feb  5 17:09:09 2008 -0500

winex11: Added WGL_BIND_TO_TEXTURE_DEPTH_NV to ConvertAttribWGLtoGLX.

---

 dlls/winex11.drv/opengl.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index d297002..3531918 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -758,6 +758,7 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
       nvfloatattrib = iWGLAttr[++cur];
       TRACE("pAttr[%d] = WGL_FLOAT_COMPONENTS_NV: %x\n", cur, nvfloatattrib);
       break ;
+    case WGL_BIND_TO_TEXTURE_DEPTH_NV:
     case WGL_BIND_TO_TEXTURE_RGB_ARB:
     case WGL_BIND_TO_TEXTURE_RGBA_ARB:
     case WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV:
@@ -1692,7 +1693,7 @@ BOOL X11DRV_wglMakeCurrent(X11DRV_PDEVICE *physDev, HGLRC hglrc) {
 
     if (!has_opengl()) {
         ERR("No libGL on this box - disabling OpenGL support !\n");
-        return 0;
+        return FALSE;
     }
 
     wine_tsx11_lock();




More information about the wine-cvs mailing list