@@ -795,10 +795,6 @@ void CRender::addShaderOption(const char* name, const char* value)
795795 m_ShaderOptions.push_back (macro);
796796}
797797
798- // XXX nitrocaster: workaround to eliminate conflict between different GUIDs from DXSDK/Windows SDK
799- // 0a233719-3960-4578-9d7c-203b8b1d9cc1
800- static const GUID guidShaderReflection = {0x0a233719 , 0x3960 , 0x4578 , {0x9d , 0x7c , 0x20 , 0x3b , 0x8b , 0x1d , 0x9c , 0xc1 }};
801-
802798template <typename T>
803799static HRESULT create_shader (LPCSTR const pTarget, DWORD const * buffer, u32 const buffer_size, LPCSTR const file_name,
804800 T*& result, bool const disasm)
@@ -807,7 +803,7 @@ static HRESULT create_shader(LPCSTR const pTarget, DWORD const* buffer, u32 cons
807803
808804 ID3DShaderReflection* pReflection = 0 ;
809805
810- HRESULT const _hr = D3DReflect (buffer, buffer_size, guidShaderReflection , (void **)&pReflection);
806+ HRESULT const _hr = D3DReflect (buffer, buffer_size, IID_ID3D11ShaderReflection , (void **)&pReflection);
811807 if (SUCCEEDED (_hr) && pReflection)
812808 {
813809 // Parse constant table data
@@ -845,7 +841,7 @@ static HRESULT create_shader(LPCSTR const pTarget, DWORD const* buffer, u32 cons
845841 ID3DShaderReflection* pReflection = 0 ;
846842
847843#ifdef USE_DX11
848- _result = D3DReflect (buffer, buffer_size, guidShaderReflection , (void **)&pReflection);
844+ _result = D3DReflect (buffer, buffer_size, IID_ID3D11ShaderReflection , (void **)&pReflection);
849845#else
850846 _result = D3D10ReflectShader (buffer, buffer_size, &pReflection);
851847#endif
@@ -883,7 +879,7 @@ static HRESULT create_shader(LPCSTR const pTarget, DWORD const* buffer, u32 cons
883879
884880 ID3DShaderReflection* pReflection = 0 ;
885881#ifdef USE_DX11
886- _result = D3DReflect (buffer, buffer_size, guidShaderReflection , (void **)&pReflection);
882+ _result = D3DReflect (buffer, buffer_size, IID_ID3D11ShaderReflection , (void **)&pReflection);
887883#else
888884 _result = D3D10ReflectShader (buffer, buffer_size, &pReflection);
889885#endif
@@ -934,7 +930,7 @@ static HRESULT create_shader(LPCSTR const pTarget, DWORD const* buffer, u32 cons
934930 ID3DShaderReflection* pReflection = 0 ;
935931
936932#ifdef USE_DX11
937- _result = D3DReflect (buffer, buffer_size, guidShaderReflection , (void **)&pReflection);
933+ _result = D3DReflect (buffer, buffer_size, IID_ID3D11ShaderReflection , (void **)&pReflection);
938934#else
939935 _result = D3D10ReflectShader (buffer, buffer_size, &pReflection);
940936#endif
0 commit comments