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

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Stefan Dösinger 2017-04-21 17:01:50 +02:00 committed by Alexandre Julliard
parent b81e58b6bf
commit 0aa9302b08
2 changed files with 10 additions and 2 deletions

View File

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

View File

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