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.
This commit is contained in:
Jason Green 2006-04-12 19:42:55 -04:00 committed by Alexandre Julliard
parent b3d8be24db
commit 5f4b424553

View File

@ -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;
}
}