From 5f4b424553fda6a1dd0ff33db04411a287b5f13c Mon Sep 17 00:00:00 2001 From: Jason Green Date: Wed, 12 Apr 2006 19:42:55 -0400 Subject: [PATCH] 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 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index 1b77b5bb67a..b38db422270 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -1948,6 +1948,9 @@ int D3DFmtMakeGlCfg(D3DFORMAT BackBufferFormat, D3DFORMAT StencilBufferFormat, i } 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 BackBufferFormat, D3DFORMAT StencilBufferFormat, i 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 BackBufferFormat, D3DFORMAT StencilBufferFormat, i break; default: - FIXME("Unsupported stencil format: %s\n", debug_d3dformat(BackBufferFormat)); + FIXME("Unsupported stencil format: %s\n", debug_d3dformat(StencilBufferFormat)); break; } }