wined3d: Add case 0 to switch statement and fix the fixme
Jason Green
jave27 at gmail.com
Wed Apr 12 18:42:55 CDT 2006
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.
-------------- next part --------------
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-patches
mailing list