ddraw/tests: Skip tests when DirectDraw4 is not supported.
This commit is contained in:
parent
10e5d3aa12
commit
902bee8f09
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue