d3d1x: work around crash in widl
authorLuca Barbieri <luca@luca-barbieri.com>
Mon, 27 Sep 2010 22:16:22 +0000 (00:16 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Mon, 27 Sep 2010 22:18:25 +0000 (00:18 +0200)
src/gallium/state_trackers/d3d1x/gd3dapi/galliumd3d10_1.idl
src/gallium/state_trackers/d3d1x/gd3dapi/galliumd3d11.idl

index 40a0d6a8862e676cf442b6b013f20240bb9d7350..dddb3431b6f9331250dfa87452972c2033abaa00 100644 (file)
@@ -27,4 +27,9 @@
 import "ocidl.idl";
 import "d3d10_1.idl";
 
-HRESULT __stdcall GalliumD3D10DeviceCreate1(struct pipe_screen* screen, struct pipe_context* context, BOOL owns_context, unsigned creation_flags, IDXGIAdapter* adapter, ID3D10Device1** ppDevice);
+// just adding __stdcall to the function makes at least one version of widl crash
+[object, local]
+interface IDummyInterfaceToPutWidlInComModeForGalliumD3D10
+{}
+
+HRESULT GalliumD3D10DeviceCreate1(struct pipe_screen* screen, struct pipe_context* context, BOOL owns_context, unsigned creation_flags, IDXGIAdapter* adapter, ID3D10Device1** ppDevice);
index 4dca1bcf91bd4d5140e5e7cee7102e784884346f..76f8a7f7f6e5714b5bc3aebb9266b4f10a31b6e5 100644 (file)
 import "ocidl.idl";
 import "d3d11.idl";
 
-HRESULT __stdcall GalliumD3D11DeviceCreate(struct pipe_screen* screen, struct pipe_context* context, BOOL owns_context, unsigned creation_flags, IDXGIAdapter* adapter, ID3D11Device** ppDevice);
+// just adding __stdcall to the function makes at least one version of widl crash
+[object, local]
+interface IDummyInterfaceToPutWidlInComModeForGalliumD3D11
+{}
+
+HRESULT GalliumD3D11DeviceCreate(struct pipe_screen* screen, struct pipe_context* context, BOOL owns_context, unsigned creation_flags, IDXGIAdapter* adapter, ID3D11Device** ppDevice);