Direct2D QPA config test: Test for presence of IDXGISurface1

Partial Direct2D was added to recent versions of MinGW, which made the
config test pass but is not sufficient to actually build the plugin.
Check for IDXGISurface1 in addition.

Change-Id: Ie108f5735ceb0a44934429b0fd2213612ed28848
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
bb10
Friedemann Kleint 2016-11-04 11:11:40 +01:00
parent 1ba0cfab30
commit da9ddb1e32
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ int main(int, char**)
{
ComPtr<ID2D1Factory1> d2dFactory;
D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, d2dFactory.ReleaseAndGetAddressOf());
ComPtr<IDXGISurface1> surface;
(void)surface; // Q_UNUSED
return 0;
}