Commit 902bee8f authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

ddraw/tests: Skip tests when DirectDraw4 is not supported.

parent 10e5d3aa
......@@ -2750,8 +2750,21 @@ static void SurfaceCapsTest(void)
START_TEST(dsurface)
{
HRESULT ret;
IDirectDraw4 *dd4;
if (!CreateDirectDraw())
return;
ret = IDirectDraw_QueryInterface(lpDD, &IID_IDirectDraw4, (void **) &dd4);
if (ret == E_NOINTERFACE)
{
win_skip("DirectDraw4 and higher are not supported\n");
ReleaseDirectDraw();
return;
}
IDirectDraw_Release(dd4);
MipMapCreationTest();
SrcColorKey32BlitTest();
QueryInterface();
......
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