From d8ac834805d103a545f82163ef50c60c13881cb3 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Fri, 13 Jun 2014 13:04:05 +0100 Subject: dxgitrace/retrace: A few more cleanups. --- dispatch/compat.h | 2 ++ dispatch/d3d10imports.hpp | 9 --------- dispatch/d3d11imports.hpp | 17 ----------------- dispatch/d3derr.hpp | 30 ++++++++++++++++++++++++++++-- 4 files changed, 30 insertions(+), 28 deletions(-) (limited to 'dispatch') diff --git a/dispatch/compat.h b/dispatch/compat.h index 33819896..be7ab787 100644 --- a/dispatch/compat.h +++ b/dispatch/compat.h @@ -37,10 +37,12 @@ * Several of the defines below clash with libstdc++ internal variables, * so include the headers now, before they are re-defined. */ +#ifdef __cplusplus #include #include #include #include +#endif /* diff --git a/dispatch/d3d10imports.hpp b/dispatch/d3d10imports.hpp index 72118434..8af79811 100644 --- a/dispatch/d3d10imports.hpp +++ b/dispatch/d3d10imports.hpp @@ -42,13 +42,4 @@ #include "dxgiint.h" -#ifndef D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS -#define D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS MAKE_D3D10_HRESULT(1) -#endif - -#ifndef D3D10_ERROR_FILE_NOT_FOUND -#define D3D10_ERROR_FILE_NOT_FOUND MAKE_D3D10_HRESULT(2) -#endif - - #endif /* _D3D10IMPORTS_HPP_ */ diff --git a/dispatch/d3d11imports.hpp b/dispatch/d3d11imports.hpp index 05ddef9c..6cc18fcd 100644 --- a/dispatch/d3d11imports.hpp +++ b/dispatch/d3d11imports.hpp @@ -42,21 +42,4 @@ #include "dxgiint.h" -#ifndef D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS -#define D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS MAKE_D3D11_HRESULT(1) -#endif - -#ifndef D3D11_ERROR_FILE_NOT_FOUND -#define D3D11_ERROR_FILE_NOT_FOUND MAKE_D3D11_HRESULT(2) -#endif - -#ifndef D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS -#define D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS MAKE_D3D11_HRESULT(3) -#endif - -#ifndef D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD -#define D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD MAKE_D3D11_HRESULT(4) -#endif - - #endif /* _D3D11IMPORTS_HPP_ */ diff --git a/dispatch/d3derr.hpp b/dispatch/d3derr.hpp index 39a3e9c4..67255215 100644 --- a/dispatch/d3derr.hpp +++ b/dispatch/d3derr.hpp @@ -24,7 +24,7 @@ **************************************************************************/ /* - * D3DERR return codes. + * Direct3D error codes. * * These were defined in d3dx10.h/d3dx11.h on DirectX SDK, and moved to * winerror.h on Windows 8 SDK. @@ -40,7 +40,7 @@ #ifndef _FACD3D -#define _FACD3D 0x876 +#define _FACD3D 0x876 #endif #ifndef MAKE_D3DHRESULT @@ -60,4 +60,30 @@ #endif +#ifndef D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS +#define D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS MAKE_D3D10_HRESULT(1) +#endif + +#ifndef D3D10_ERROR_FILE_NOT_FOUND +#define D3D10_ERROR_FILE_NOT_FOUND MAKE_D3D10_HRESULT(2) +#endif + + +#ifndef D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS +#define D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS MAKE_D3D11_HRESULT(1) +#endif + +#ifndef D3D11_ERROR_FILE_NOT_FOUND +#define D3D11_ERROR_FILE_NOT_FOUND MAKE_D3D11_HRESULT(2) +#endif + +#ifndef D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS +#define D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS MAKE_D3D11_HRESULT(3) +#endif + +#ifndef D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD +#define D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD MAKE_D3D11_HRESULT(4) +#endif + + #endif /* _D3DERR_HPP_ */ -- cgit v1.2.3