From 1f4d71c0f68d4d7eac1e1caaf9a247b297b4b82e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Thu, 2 Aug 2007 20:22:26 +0200 Subject: [PATCH] ddraw: Some drivers return DDERR_INVALIDPARAMS if DXTn surfaces aren't supported. --- dlls/ddraw/tests/dsurface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/ddraw/tests/dsurface.c b/dlls/ddraw/tests/dsurface.c index e999aebdd8c..b2cd033059c 100644 --- a/dlls/ddraw/tests/dsurface.c +++ b/dlls/ddraw/tests/dsurface.c @@ -1787,7 +1787,8 @@ static void CompressedTest(void) U4(ddsd).ddpfPixelFormat.dwFourCC = MAKEFOURCC('D','X','T','1'); hr = IDirectDraw7_CreateSurface(dd7, &ddsd, &surface, NULL); - ok(hr == DD_OK || hr == DDERR_NOTEXTUREHW, "CreateSurface returned %08x\n", hr); + ok(hr == DD_OK || hr == DDERR_NOTEXTUREHW || hr == DDERR_INVALIDPARAMS, + "CreateSurface returned %08x\n", hr); /* Not supported everywhere */ if(SUCCEEDED(hr))