From 293551dc8d6aa716db9d439f4c23e32027cb712d Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 15 May 2019 21:42:42 +0200 Subject: [PATCH] [d3d10] Fix winelib build There's no IID_PPV_ARGS on wine. --- src/d3d10/d3d10_main.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/d3d10/d3d10_main.cpp b/src/d3d10/d3d10_main.cpp index 11972462..447cc6a2 100644 --- a/src/d3d10/d3d10_main.cpp +++ b/src/d3d10/d3d10_main.cpp @@ -147,7 +147,9 @@ extern "C" { return D3D10InternalCreateDeviceAndSwapChain( pAdapter, DriverType, Software, Flags, D3D10_FEATURE_LEVEL_10_0, SDKVersion, - nullptr, nullptr, IID_PPV_ARGS(ppDevice)); + nullptr, nullptr, + __uuidof(ID3D10Device), + reinterpret_cast(ppDevice)); } @@ -162,7 +164,9 @@ extern "C" { return D3D10InternalCreateDeviceAndSwapChain( pAdapter, DriverType, Software, Flags, HardwareLevel, SDKVersion, - nullptr, nullptr, IID_PPV_ARGS(ppDevice)); + nullptr, nullptr, + __uuidof(ID3D10Device1), + reinterpret_cast(ppDevice)); } @@ -179,7 +183,8 @@ extern "C" { pAdapter, DriverType, Software, Flags, D3D10_FEATURE_LEVEL_10_0, SDKVersion, pSwapChainDesc, ppSwapChain, - IID_PPV_ARGS(ppDevice)); + __uuidof(ID3D10Device), + reinterpret_cast(ppDevice)); } @@ -197,7 +202,8 @@ extern "C" { pAdapter, DriverType, Software, Flags, HardwareLevel, SDKVersion, pSwapChainDesc, ppSwapChain, - IID_PPV_ARGS(ppDevice)); + __uuidof(ID3D10Device1), + reinterpret_cast(ppDevice)); }