wined3d: Blacklist WINED3DFMT_R8G8B8.

This commit is contained in:
Stefan Dösinger 2006-07-27 00:56:09 +02:00 committed by Alexandre Julliard
parent 0b5a6cd11b
commit 3588067b90
1 changed files with 13 additions and 1 deletions

View File

@ -1494,12 +1494,24 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
}
}
/* This format is nothing special and it is supported perfectly.
* However, ati and nvidia driver on windows do not mark this format
* supported(tested with the dxCapsViewer) and pretending to
* support this format uncovers a bug in Battlefield 1942(fonts are missing)
* So do the same as Windows drivers and pretend not to support it on dx8 and 9
* Enable it on dx7. It will need additional checking on dx10 when we support it.
*/
if(This->dxVersion > 7 && CheckFormat == WINED3DFMT_R8G8B8) {
TRACE_(d3d_caps)("[FAILED]\n");
return WINED3DERR_NOTAVAILABLE;
}
switch (CheckFormat) {
/*****
* supported: RGB(A) formats
*/
case WINED3DFMT_R8G8B8:
case WINED3DFMT_R8G8B8: /* Enable for dx7, blacklisted for 8 and 9 above */
case WINED3DFMT_A8R8G8B8:
case WINED3DFMT_X8R8G8B8:
case WINED3DFMT_R5G6B5: