Jason Green : wined3d: Add case 0 to switch statement and fix the fixme.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Apr 13 05:17:21 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 5f4b424553fda6a1dd0ff33db04411a287b5f13c
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=5f4b424553fda6a1dd0ff33db04411a287b5f13c

Author: Jason Green <jave27 at gmail.com>
Date:   Wed Apr 12 19:42:55 2006 -0400

wined3d: Add case 0 to switch statement and fix the fixme.

Screwed up a copy/paste from one of my recent patches.  This
eliminates the erroneous FIXME for calls to D3DFmtMakeGlCfg() with 0
as the Stencil format.  Also, it changes the FIXME to print the
correct variable.

---

 dlls/wined3d/utils.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 1b77b5b..b38db42 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -1948,6 +1948,9 @@ int D3DFmtMakeGlCfg(D3DFORMAT BackBuffer
     }
     if(!alternate){
         switch (StencilBufferFormat) {
+    case 0:
+        break;
+
     case WINED3DFMT_D16_LOCKABLE:
     case WINED3DFMT_D16:
         PUSH2(GLX_DEPTH_SIZE,   16);
@@ -1984,12 +1987,15 @@ int D3DFmtMakeGlCfg(D3DFORMAT BackBuffer
         break;
 
     default:
-        FIXME("Unsupported stencil format: %s\n", debug_d3dformat(BackBufferFormat));
+        FIXME("Unsupported stencil format: %s\n", debug_d3dformat(StencilBufferFormat));
         break;
     }
 
     } else { /* it the device doesn't support the 'exact' format, try to find something close */
         switch (StencilBufferFormat) {
+        case 0:
+            break;
+            
         case WINED3DFMT_D16_LOCKABLE:
         case WINED3DFMT_D16:
             PUSH2(GLX_DEPTH_SIZE,   1);
@@ -2026,7 +2032,7 @@ int D3DFmtMakeGlCfg(D3DFORMAT BackBuffer
             break;
 
         default:
-            FIXME("Unsupported stencil format: %s\n", debug_d3dformat(BackBufferFormat));
+            FIXME("Unsupported stencil format: %s\n", debug_d3dformat(StencilBufferFormat));
             break;
         }
     }




More information about the wine-cvs mailing list