diff --git a/src/gfx/Precomp.h b/src/gfx/Precomp.h index ae81810a7..3c5e687c8 100644 --- a/src/gfx/Precomp.h +++ b/src/gfx/Precomp.h @@ -43,10 +43,6 @@ #include "winpixeventruntime\Include\WinPixEventRuntime\pix3.h" #endif -#if VG_ENABLE_SHADER_COMPILATION -#include "dxc/inc/dxcapi.h" -#endif - #pragma push_macro("new") #undef new #include "D3D12MemoryAllocator/src/D3D12MemAlloc.h" diff --git a/src/gfx/Shader/dxc/ShaderCompiler_dxc.hpp b/src/gfx/Shader/dxc/ShaderCompiler_dxc.hpp index 04bec3be7..aed74c314 100644 --- a/src/gfx/Shader/dxc/ShaderCompiler_dxc.hpp +++ b/src/gfx/Shader/dxc/ShaderCompiler_dxc.hpp @@ -134,15 +134,7 @@ namespace vg::gfx::dxc { VG_SAFE_RELEASE(m_d3d12dxcCompiler); VG_SAFE_RELEASE(m_d3d12dxcLibrary); - - try - { - VG_SAFE_RELEASE(m_d3d12dxcIncludeHandler); - } - catch (const std::exception & e) - { - VG_UNREFERENCED_VARIABLE(e); - } + VG_SAFE_RELEASE(m_d3d12dxcIncludeHandler); } //--------------------------------------------------------------------------------------