ddraw: Order Z-buffer formats by depth buffer bit depths in IDirect3DImpl_7_EnumZBufferFormats.
This commit is contained in:
parent
d5238cfb38
commit
6add05d33b
|
@ -1053,13 +1053,15 @@ IDirect3DImpl_7_EnumZBufferFormats(IDirect3D7 *iface,
|
|||
HRESULT hr;
|
||||
int i;
|
||||
|
||||
/* Order matters. Specifically, BattleZone II (full version) expects the
|
||||
* 16-bit depth formats to be listed before the 24 and 32 ones. */
|
||||
WINED3DFORMAT FormatList[] = {
|
||||
WINED3DFMT_D32,
|
||||
WINED3DFMT_D15S1,
|
||||
WINED3DFMT_D24S8,
|
||||
WINED3DFMT_D16,
|
||||
WINED3DFMT_D24X8,
|
||||
WINED3DFMT_D24X4S4,
|
||||
WINED3DFMT_D16
|
||||
WINED3DFMT_D24S8,
|
||||
WINED3DFMT_D32
|
||||
};
|
||||
|
||||
TRACE("(%p)->(%s,%p,%p): Relay\n", iface, debugstr_guid(refiidDevice), Callback, Context);
|
||||
|
|
Loading…
Reference in New Issue