Commit 0aa9302b authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

ddraw/tests: Prefer 16 bit depth buffers in ddraw1 and 2.

parent b81e58b6
......@@ -431,7 +431,11 @@ static IDirectDraw *create_ddraw(void)
static IDirect3DDevice *create_device(IDirectDraw *ddraw, HWND window, DWORD coop_level)
{
static const DWORD z_depths[] = {32, 24, 16};
/* Prefer 16 bit depth buffers because Nvidia gives us an unpadded D24 buffer if we ask
* for 24 bit and handles such buffers incorrectly in DDBLT_DEPTHFILL. AMD only supports
* 16 bit buffers in ddraw1/2. Stencil was added in ddraw4, so we cannot create a D24S8
* buffer here. */
static const DWORD z_depths[] = {16, 32, 24};
IDirectDrawSurface *surface, *ds;
IDirect3DDevice *device = NULL;
DDSURFACEDESC surface_desc;
......
......@@ -301,7 +301,11 @@ static IDirectDraw2 *create_ddraw(void)
static IDirect3DDevice2 *create_device(IDirectDraw2 *ddraw, HWND window, DWORD coop_level)
{
static const DWORD z_depths[] = {32, 24, 16};
/* Prefer 16 bit depth buffers because Nvidia gives us an unpadded D24 buffer if we ask
* for 24 bit and handles such buffers incorrectly in DDBLT_DEPTHFILL. AMD only supports
* 16 bit buffers in ddraw1/2. Stencil was added in ddraw4, so we cannot create a D24S8
* buffer here. */
static const DWORD z_depths[] = {16, 32, 24};
IDirectDrawSurface *surface, *ds;
IDirect3DDevice2 *device = NULL;
DDSURFACEDESC surface_desc;
......
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