Commit 5f4b4245 authored by Jason Green's avatar Jason Green Committed by Alexandre Julliard

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.
parent b3d8be24
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment